C# Класс NutMud.Commands.Attributes.CommandParameterAttribute

Наследование: System.Attribute
Показать файл Открыть проект

Открытые методы

Метод Описание
CommandParameterAttribute ( CommandUsage usage, Type type, CacheReferenceType cacheTypes, bool optional ) : System

Creates a new parameter attribute with a blank matching pattern

CommandParameterAttribute ( CommandUsage usage, Type type, CacheReferenceType cacheTypes, string matchingPattern, bool optional ) : System

Creates a new parameter attribute

MatchesPattern ( string inputString ) : bool

Does the keywords incoming match the regex pattern (unless it's blank, in which case it always matches)

Описание методов

CommandParameterAttribute() публичный Метод

Creates a new parameter attribute with a blank matching pattern
public CommandParameterAttribute ( CommandUsage usage, Type type, CacheReferenceType cacheTypes, bool optional ) : System
usage CommandUsage How the parameter is used in the command
type System.Type The system type of the parameter expected
cacheTypes CacheReferenceType How this parameter can be found (is it data, is it a live entity)
optional bool Is this parameter optional
Результат System

CommandParameterAttribute() публичный Метод

Creates a new parameter attribute
public CommandParameterAttribute ( CommandUsage usage, Type type, CacheReferenceType cacheTypes, string matchingPattern, bool optional ) : System
usage CommandUsage How the parameter is used in the command
type System.Type The system type of the parameter expected
cacheTypes CacheReferenceType How this parameter can be found (is it data, is it a live entity)
matchingPattern string Does this pattern keyword follow a regex pattern
optional bool Is this parameter optional
Результат System

MatchesPattern() публичный Метод

Does the keywords incoming match the regex pattern (unless it's blank, in which case it always matches)
public MatchesPattern ( string inputString ) : bool
inputString string
Результат bool