Click or drag to resize

AllowDuplicateDictionaryKeysAttribute Class

Indicates that a dictionary argument accepts the same key more than once.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Ookii.CommandLineAllowDuplicateDictionaryKeysAttribute

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntax
public sealed class AllowDuplicateDictionaryKeysAttribute : Attribute

The AllowDuplicateDictionaryKeysAttribute type exposes the following members.

Constructors
  NameDescription
Public methodAllowDuplicateDictionaryKeysAttribute
Initializes a new instance of the AllowDuplicateDictionaryKeysAttribute class
Top
Properties
  NameDescription
Public propertyTypeId (Inherited from Attribute.)
Top
Methods
  NameDescription
Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)
Top
Remarks

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.

See Also