Skip to main content

DataField<T> Constructors

An object defining constructors for the DataField<T> class.

DataField(value)

Initializes a new instance of the DataField<T> class with the specified value.

Parameters:

value (required): T
The initial value of the data field.


DataField(info, context)

Initializes a new instance of the DataField<T> class with the specified value.

Parameters:

info (required): SerializationInfo
The data needed to deserialize the object.

context (required): StreamingContext
The source and destination of the serialized stream.