Struct ConsoleCommand
Namespace: ReadyM.Api.Command
Assembly: ReadyM.Api.dll
public readonly struct ConsoleCommand
Inherited Membersâ
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructorsâ
ConsoleCommand(Delegate, int, int?, IReadOnlyList<ParamInfo>, Type?, bool)â
public ConsoleCommand(Delegate handler, int minArgCount, int? maxArgCount, IReadOnlyList<ConsoleCommand.ParamInfo> args, Type? repeatingParam, bool isDebugOnly)
Parametersâ
handler Delegate
minArgCount int
maxArgCount int?
args IReadOnlyList<ConsoleCommand.ParamInfo>
repeatingParam Type?
isDebugOnly bool
Fieldsâ
Handlerâ
public readonly Delegate Handler
Field Valueâ
IsDebugOnlyâ
public readonly bool IsDebugOnly
Field Valueâ
MaxArgCountâ
public readonly int? MaxArgCount
Field Valueâ
int?
MinArgCountâ
public readonly int MinArgCount
Field Valueâ
Parametersâ
public readonly IReadOnlyList<ConsoleCommand.ParamInfo> Parameters
Field Valueâ
IReadOnlyList<ConsoleCommand.ParamInfo>
RepeatingParamâ
public readonly Type? RepeatingParam
Field Valueâ
Type?
Methodsâ
Create(Delegate, bool)â
public static ConsoleCommand Create(Delegate handler, bool isDebugOnly = false)
Parametersâ
handler Delegate
isDebugOnly bool
Returnsâ
Invoke(IReadOnlyList<object?>)â
public void Invoke(IReadOnlyList<object?> args)
Parametersâ
args IReadOnlyList<object?>