Enhanced C#
Language of your choice: library documentation
|
A trivial class that holds a single value of type T in the Value property. More...
A trivial class that holds a single value of type T in the Value property.
This class is useful mainly as an alternative to standard boxing. When you box a structure in C#, you lose access to the members of that structure. This class, in contrast, provides access to the "boxed" value.
Public fields | |
T | Value |
Any value of type T. More... | |
Public Member Functions | |
Holder (T value) | |
override bool | Equals (object obj) |
override int | GetHashCode () |
override string | ToString () |
Static Public Member Functions | |
static implicit | operator Holder< T > (T value) |
Additional Inherited Members | |
Properties inherited from Loyc.IHasValue< out T > | |
T | Value [get] |
T Loyc.Holder< T >.Value |
Any value of type T.