Table of Contents

Struct CommandTag

Namespace
SampSharp.Entities.SAMP.Commands
Assembly
SampSharp.OpenMp.Entities.Commands.dll

Represents a key-value metadata tag attached to a command. Used to store custom command metadata like permissions, categories, etc.

public readonly struct CommandTag : IEquatable<CommandTag>
Implements
Inherited Members

Constructors

CommandTag(string, string)

Represents a key-value metadata tag attached to a command. Used to store custom command metadata like permissions, categories, etc.

public CommandTag(string Key, string Value)

Parameters

Key string
Value string

Properties

Key

public string Key { get; init; }

Property Value

string

Value

public string Value { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string)

public void Deconstruct(out string Key, out string Value)

Parameters

Key string
Value string

Equals(CommandTag)

public bool Equals(CommandTag other)

Parameters

other CommandTag

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CommandTag, CommandTag)

public static bool operator ==(CommandTag left, CommandTag right)

Parameters

left CommandTag
right CommandTag

Returns

bool

operator !=(CommandTag, CommandTag)

public static bool operator !=(CommandTag left, CommandTag right)

Parameters

left CommandTag
right CommandTag

Returns

bool