Class CaseSensitivityAttribute
Sets case sensitivity for the command.
Namespace: TehGM.Wolfringo.Commands
Assembly: Wolfringo.Commands.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class CaseSensitivityAttribute : Attribute
Remarks
Command's case sensitivity will be taken from CaseSensitivityAttribute present on the method. If the method doesn't have the attribute, it'll be taken from CaseSensitivityAttribute present on the handler type. If the handler type also doesn't specify the priority, value set in CommandsOptions will be used.
Respecting case sensitivity depends on the command initializer. All command initializers included with Wolfringo respect command's case sensitivity - respecting both CaseSensitivityAttribute and value in CommandsOptions.
Constructors
| Improve this Doc View SourceCaseSensitivityAttribute(Boolean)
Creates a new case sensitivity attribute.
Declaration
public CaseSensitivityAttribute(bool caseSensitive)
Parameters
Type | Name | Description |
---|---|---|
Boolean | caseSensitive | Command's case sensitivity. |
Remarks
See CaseSensitivityAttribute for more information about command's case sensitivity.
Properties
| Improve this Doc View SourceCaseSensitive
Command's case sensitivity.
Declaration
public bool CaseSensitive { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
See CaseSensitivityAttribute for more information about command's case sensitivity.