Class StringEnumUnmatchedValueAttribute<T>
- Namespace
- WebDriverBiDi
- Assembly
- WebDriverBiDi.dll
Marks an enumerated type with string values with the enumerated value to be used if the serialized value does not match one of the enumerated values.
[AttributeUsage(AttributeTargets.Enum, Inherited = false, AllowMultiple = false)]
public sealed class StringEnumUnmatchedValueAttribute<T> : Attribute where T : struct, Enum
Type Parameters
TThe enumerated type to apply the default enumerated value to.
- Inheritance
-
StringEnumUnmatchedValueAttribute<T>
- Inherited Members
Constructors
StringEnumUnmatchedValueAttribute(T)
Initializes a new instance of the StringEnumUnmatchedValueAttribute<T> class.
public StringEnumUnmatchedValueAttribute(T unmatchedValue)
Parameters
unmatchedValueTThe enumerated value to return if a string value does not match one of the enumerated options.
Properties
UnmatchedValue
Gets the enumerated value to return if the string value does not match one of the enumerated options.
public T UnmatchedValue { get; }
Property Value
- T