AllowDuplicateDictionaryKeysAttribute Class |
Namespace: Ookii.CommandLine
The AllowDuplicateDictionaryKeysAttribute type exposes the following members.
Name | Description | |
---|---|---|
AllowDuplicateDictionaryKeysAttribute | Initializes a new instance of the AllowDuplicateDictionaryKeysAttribute class |
Name | Description | |
---|---|---|
Equals | (Inherited from Attribute.) | |
GetHashCode | (Inherited from Attribute.) | |
GetType | (Inherited from Object.) | |
IsDefaultAttribute | (Inherited from Attribute.) | |
Match | (Inherited from Attribute.) | |
ToString | (Inherited from Object.) |
If this attribute is applied to an argument whose type is DictionaryTKey, TValue or IDictionaryTKey, TValue, a duplicate key will simply overwrite the previous value.
If this attribute is not applied, a CommandLineArgumentException with a Category of InvalidDictionaryValue will be thrown when a duplicate key is specified.
The AllowDuplicateDictionaryKeysAttribute is ignored if it is applied to any other type of argument.