Operator implicit operator
implicit operator int(Property)
Explicitly casts this Property into an integer. Handle convertible types properly.
Declaration
public static implicit operator int(Property value)
Parameters
Type | Name | Description |
---|---|---|
Property | value | The value to cast. |
Returns
Type | Description |
---|---|
int | The integer value. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the stored type isn't compatible with the requested type. |
Overflow |
Thrown if the stored value is outside int boundaries. |
implicit operator Property(int)
Construct a Property from the given value
.
Declaration
public static implicit operator Property(int value)
Parameters
Returns
Type | Description |
---|---|
Property |
implicit operator long(Property)
Explicitly casts this Property into a long. Handle convertible types properly.
Declaration
public static implicit operator long(Property value)
Parameters
Type | Name | Description |
---|---|---|
Property | value | The value to cast. |
Returns
Type | Description |
---|---|
long | The long value. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the stored type isn't compatible with the requested type. |
Overflow |
Thrown if the stored value is outside long boundaries. |
implicit operator Property(long)
Construct a Property from the given value
.
Declaration
public static implicit operator Property(long value)
Parameters
Returns
Type | Description |
---|---|
Property |
implicit operator float(Property)
Explicitly casts this Property into a float. Handle convertible types properly.
Declaration
public static implicit operator float(Property value)
Parameters
Type | Name | Description |
---|---|---|
Property | value | The value to cast. |
Returns
Type | Description |
---|---|
float | The float value. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the stored type isn't compatible with the requested type. |
implicit operator Property(float)
Construct a Property from the given value
.
Declaration
public static implicit operator Property(float value)
Parameters
Returns
Type | Description |
---|---|
Property |
implicit operator double(Property)
Explicitly casts this Property into a double. Handle convertible types properly.
Declaration
public static implicit operator double(Property value)
Parameters
Type | Name | Description |
---|---|---|
Property | value | The value to cast. |
Returns
Type | Description |
---|---|
double | The double value. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the stored type isn't compatible with the requested type. |
implicit operator Property(double)
Construct a Property from the given value
.
Declaration
public static implicit operator Property(double value)
Parameters
Returns
Type | Description |
---|---|
Property |
implicit operator bool(Property)
Explicitly casts this Property into a bool. Handle convertible types properly.
Declaration
public static implicit operator bool(Property value)
Parameters
Type | Name | Description |
---|---|---|
Property | value | The value to cast. |
Returns
Type | Description |
---|---|
bool | The bool value. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the stored type isn't compatible with the requested type. |
implicit operator Property(bool)
Construct a Property from the given value
.
Declaration
public static implicit operator Property(bool value)
Parameters
Returns
Type | Description |
---|---|
Property |
implicit operator string(Property)
Explicitly casts this Property into a string. Handle convertible types properly.
Declaration
public static implicit operator string(Property value)
Parameters
Type | Name | Description |
---|---|---|
Property | value | The value to cast. |
Returns
Type | Description |
---|---|
string | The string value. |
Exceptions
Type | Condition |
---|---|
Not |
Thrown if the stored type isn't supported. |
implicit operator Property(string)
Construct a Property from the given value
.
Declaration
public static implicit operator Property(string value)
Parameters
Returns
Type | Description |
---|---|
Property |