ComponentOptionType Class
An option type: a value of a type, or none.
public sealed class ComponentOptionType : ComponentValueType- Inheritance
ComponentValueTypeComponentOptionType
Constructors
| Name | Description |
|---|---|
| ComponentOptionType(ComponentValueType) | Initializes a new instance of the ComponentOptionType class. |
ComponentOptionType(ComponentValueType)
ComponentTypes.csInitializes a new instance of the ComponentOptionType class.
public ComponentOptionType(ComponentValueType type)Parameters
typeComponentValueType- The type of the value.
Properties
| Name | Description |
|---|---|
| Type | Gets the type of the value. |
Methods
| Name | Description |
|---|---|
| Equals(ComponentValueType?) | Indicates whether the current object is equal to another object of the same type. |
| GetHashCode() | Serves as the default hash function. |
Equals(ComponentValueType?)
ComponentTypes.csIndicates whether the current object is equal to another object of the same type.
public override bool Equals(ComponentValueType? other)Parameters
otherComponentValueType?- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.