DataField<T> Methods
An object defining methods for the DataField<T> class.
Equals(obj)
Determines whether the specified object is equal to the current DataField<T>
instance.
Parameters:
obj (required): object
Instance of an object to compare.
Returns:
Type: bool
true
if the objects are equal; otherwise,false
.
This is a sync method. Method runs synchronously.
GetValue()
Retrieves the encapsulated value.
Returns:
Type: object
The value of the data field as anobject
.
This is a sync method. Method runs synchronously.
ToString()
Returns a string representation of the value. If the value is null
, returns an empty string.
Returns:
Type: string
Astring
representation of the value.
This is a sync method. Method runs synchronously.
ComparedTo(other)
Compares the encapsulated value to another value of type T
.
Parameters:
other (required): T
Instance of an object to compare.
Returns:
Type: int
true
if the values are equal; otherwise,false
.
This is a sync method. Method runs synchronously.
Clone()
Creates a new DataField<T>
instance with the same value.
Returns:
Type: IDataField
A cloned instance ofIDataField
.
This is a sync method. Method runs synchronously.
GetObjectData(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.
Returns:
Type: void
Method does not return anything
GetHashCode()
Returns a hash code for the encapsulated value.
Returns:
Type: int
Anint
representing the hash code.
This is a sync method. Method runs synchronously.
Equals(other)
Determines whether the specified value is equal to the encapsulated value.
Parameters:
other (required): T
Instance of an object to compare.
Returns:
Type: bool
true
if the values are equal; otherwise,false
.
This is a sync method. Method runs synchronously.
ComparedTo(obj)
Compares the encapsulated value to another object.
Parameters:
obj (required): object
Instance of an object to compare.
Returns:
Type: int
A signed integer that indicates the relative values.
This is a sync method. Method runs synchronously.