A variant stores one value of either type T1 or T2.
Namespace: Stemmer.Cvb.GevServer
Assembly: Stemmer.Cvb.GevServer (in Stemmer.Cvb.GevServer.dll) Version: 14.0.0.0
Syntax
Type Parameters
- T1
- First type to store.
- T2
- Second type to store.
The ValueVariantT1, T2 type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ValueVariantT1, T2(T1) |
Creates a new variant from the given value.
| |
ValueVariantT1, T2(T2) |
Creates a new variant from the given value.
|
Properties
Name | Description | |
---|---|---|
IsSet |
Gets whether a value is set at all.
| |
IsT1 |
Gets whether a value of type T1 is set.
| |
IsT2 |
Gets whether a value of type T2 is set.
|
Methods
Name | Description | |
---|---|---|
Assign(T1) |
Assigns the given value to this variant.
| |
Assign(T2) |
Assigns the given value to this variant.
| |
AsT1 |
Gets the value as T1.
| |
AsT2 |
Gets the value as T2.
| |
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Reset |
Resets the value.
| |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) | |
ToVariantO1, O2 |
Translates this variant to another variant.
|
Operators
Name | Description | |
---|---|---|
(T1 to ValueVariantT1, T2) |
Implicitly creates a new variant from the given value.
| |
(T2 to ValueVariantT1, T2) |
Implicitly creates a new variant from the given value.
| |
(ValueVariantT1, T2 to T1) |
Implicitly converts the variant value to its
T1 value.
| |
(ValueVariantT1, T2 to T2) |
Implicitly converts the variant value to its
T1 value.
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
IStrongBoxValue | Gets or sets the value that an object references. |
Remarks
See Also