◆ AspectPropertyValue() [1/2]
Default constructor.
Used to create an instance with no initial underlying value.
\r\n
This class can be used where engines have a property that may be populated and may not.
See the Specification
AspectPropertyValue ()
Default constructor. More...
| |
AspectPropertyValue (T value)
Constructor. More...
| |
override string | ToString ()
Get the string representation of this instance. More...
|
override bool | Equals (object obj)
Check if this instance is equal to the specified object. More...
|
override int | GetHashCode ()
Get the hash code for this instance. More...
|
Default constructor.
Used to create an instance with no initial underlying value.
FiftyOne.Pipeline.Engines.Data.AspectPropertyValue< T >.AspectPropertyValue | ( | T | value | ) |
Constructor.
Used to create an instance with an underlying value.
override bool FiftyOne.Pipeline.Engines.Data.AspectPropertyValue< T >.Equals | ( | object | obj | ) |
Check if this instance is equal to the specified object.
AspectPropertyValue<T> instances are considered equal they have the same generic type parameter and:
override int FiftyOne.Pipeline.Engines.Data.AspectPropertyValue< T >.GetHashCode | ( | ) |
Get the hash code for this instance.
If value has been set to null then this will return 0. If HasValue = false then this will return -1. Otherwise, this will return the result of GetHashCode for the stored value.
In order to avoid the most problematic hash collisions, where GetHashCode for the stored value returns 0 or -1 it will be changed to 1 or -2 respectively.
override string FiftyOne.Pipeline.Engines.Data.AspectPropertyValue< T >.ToString | ( | ) |
Get the string representation of this instance.
bool FiftyOne.Pipeline.Engines.Data.AspectPropertyValue< T >.HasValue |
True if this instance contains a value, false otherwise.
string FiftyOne.Pipeline.Engines.Data.AspectPropertyValue< T >.NoValueMessage |
The message in the Exception if the Value property is accessed and the instance does not have a set value.
T FiftyOne.Pipeline.Engines.Data.AspectPropertyValue< T >.Value |