Table of Contents

Class StringEnumNullSentinelValueAttribute<T>

Namespace
WebDriverBiDi
Assembly
WebDriverBiDi.dll

Marks an enumerated type with string values with the enumerated value to use to signal a null should be written to the JSON serialization.

[AttributeUsage(AttributeTargets.Enum, Inherited = false, AllowMultiple = false)]
public sealed class StringEnumNullSentinelValueAttribute<T> : Attribute where T : struct, Enum

Type Parameters

T

The enumerated type to apply the null enumerated value to.

Inheritance
StringEnumNullSentinelValueAttribute<T>
Inherited Members

Constructors

StringEnumNullSentinelValueAttribute(T)

Initializes a new instance of the StringEnumNullSentinelValueAttribute<T> class.

public StringEnumNullSentinelValueAttribute(T nullSentinelValue)

Parameters

nullSentinelValue T

The enumerated value to indicate a null value should be serialized.

Properties

NullSentinelValue

Gets the enumerated value that is serialized as a JSON null rather than as a string, allowing an enum member to express a protocol "reset" value.

public T NullSentinelValue { get; }

Property Value

T