-
Notifications
You must be signed in to change notification settings - Fork 0
Variant
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.Variant |
| Namespace | Electron2D |
| Kind | struct |
| Category | Math and Data |
Stores one value from the closed Electron2D 0.1.0 Preview Variant type set.
public struct Electron2D.Variant : System.IEquatable<Electron2D.Variant>Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: Variant
Closed 0.1 value carrier for nil, primitives, enum-as-int, 2D math, identity handles, Object-derived values, Callable and Electron2D collections.
Electron2D.Variant is the Electron2D dynamic value carrier used by
engine APIs that cannot be represented as a single static C# type. It is a
value type; default(Variant) represents Electron2D.Variant.Type.Nil.
Electron2D 0.1.0 Preview intentionally supports a closed preview set:
primitive values, 2D math types, identity handles, Electron2D.Object
instances, Electron2D.Callable, and Electron2D collections. 3D types,
packed arrays, Signal, editor-only values, and arbitrary CLR objects
are not part of this release contract.
Independent Variant values are safe to read from any thread. If a Variant stores a mutable collection, thread safety follows that collection instance.
This type is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
Obj |
Property | Gets the boxed value stored in this variant. |
VariantType |
Property | Gets the type stored in this variant. |
As() |
Method | Converts this variant to a supported C# type. |
AsArray() |
Method | Reads the stored Electron2D array reference. |
AsBool() |
Method | Reads the stored Boolean value. |
AsCallable() |
Method | Reads the stored Electron2D.Callable value. |
AsColor() |
Method | Reads the stored Electron2D.Color value. |
AsDictionary() |
Method | Reads the stored Electron2D dictionary reference. |
AsDouble() |
Method | Reads the stored 64-bit floating-point value. |
AsInt32() |
Method | Reads the stored integer value as a signed 32-bit integer. |
AsInt64() |
Method | Reads the stored signed 64-bit integer value. |
AsNodePath() |
Method | Reads the stored Electron2D.NodePath value. |
AsObject() |
Method | Reads the stored object reference. |
AsRect2() |
Method | Reads the stored Electron2D.Rect2 value. |
AsRect2I() |
Method | Reads the stored Electron2D.Rect2I value. |
AsRid() |
Method | Reads the stored Electron2D.Rid value. |
AsString() |
Method | Reads the stored string value. |
AsStringName() |
Method | Reads the stored Electron2D.StringName value. |
AsTransform2D() |
Method | Reads the stored Electron2D.Transform2D value. |
AsVector2() |
Method | Reads the stored Electron2D.Vector2 value. |
AsVector2I() |
Method | Reads the stored Electron2D.Vector2I value. |
CreateFrom(System.Object) |
Method | Creates a Variant from any supported Electron2D 0.1.0 Preview value. |
Equals(Electron2D.Variant) |
Method | Tests two variants for equality. |
Equals(System.Object) |
Method | Tests whether an object is an equal Variant. |
From(T) |
Method | Creates a Variant from a supported value while preserving generic call sites. |
GetHashCode() |
Method | Returns a hash code for this Variant. |
IsNil() |
Method | Returns whether this variant stores Electron2D.Variant.Type.Nil. |
ToString() |
Method | Returns a diagnostic string representation of the stored value. |
op_Equality(Electron2D.Variant, Electron2D.Variant) |
Method | Tests two variants for equality. |
op_Implicit(System.Boolean) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.Byte) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.Double) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Callable) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Collections.Array) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Collections.Dictionary) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Color) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.NodePath) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Object) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Rect2) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Rect2I) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Rid) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.StringName) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Transform2D) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Vector2) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(Electron2D.Vector2I) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.Int16) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.Int32) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.Int64) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.SByte) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.Single) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.String) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.UInt16) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.UInt32) |
Method | Converts a Boolean value to a Variant. |
op_Implicit(System.UInt64) |
Method | Converts a Boolean value to a Variant. |
op_Inequality(Electron2D.Variant, Electron2D.Variant) |
Method | Tests two variants for inequality. |
Kind: Property
public System.Object Obj { get; }Gets the boxed value stored in this variant.
Numeric values are normalized before boxing: integer-compatible values
are boxed as System.Int64 and floating-point values are boxed as
System.Double.
The current obj value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Property
public Electron2D.Variant.Type VariantType { get; }Gets the type stored in this variant.
This property follows the validation and lifetime rules of its declaring type.
The current variant type value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public T As()()Converts this variant to a supported C# type.
This method follows the validation and lifetime rules of its declaring type.
-
T: The requested C# type.
The stored value converted to T.
-
System.InvalidCastException: Thrown when the stored Variant type does not matchT. -
System.ArgumentException: Thrown whenTis not a supported Variant target type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Collections.Array AsArray()()Reads the stored Electron2D array reference.
This method follows the validation and lifetime rules of its declaring type.
The stored Electron2D.Collections.Array instance.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Array.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public System.Boolean AsBool()()Reads the stored Boolean value.
This method follows the validation and lifetime rules of its declaring type.
The stored System.Boolean value.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Bool.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Callable AsCallable()()Reads the stored Electron2D.Callable value.
This method follows the validation and lifetime rules of its declaring type.
The stored callable.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Callable.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Color AsColor()()Reads the stored Electron2D.Color value.
This method follows the validation and lifetime rules of its declaring type.
The stored color.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Color.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Collections.Dictionary AsDictionary()()Reads the stored Electron2D dictionary reference.
This method follows the validation and lifetime rules of its declaring type.
The stored Electron2D.Collections.Dictionary instance.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Dictionary.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public System.Double AsDouble()()Reads the stored 64-bit floating-point value.
This method follows the validation and lifetime rules of its declaring type.
The stored System.Double value.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Float.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public System.Int32 AsInt32()()Reads the stored integer value as a signed 32-bit integer.
This method follows the validation and lifetime rules of its declaring type.
The stored integer converted to System.Int32.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Intor the value does not fit inSystem.Int32.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public System.Int64 AsInt64()()Reads the stored signed 64-bit integer value.
This method follows the validation and lifetime rules of its declaring type.
The stored System.Int64 value.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Int.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.NodePath AsNodePath()()Reads the stored Electron2D.NodePath value.
This method follows the validation and lifetime rules of its declaring type.
The stored node path.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.NodePath.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Object AsObject()()Reads the stored object reference.
This method follows the validation and lifetime rules of its declaring type.
The stored Electron2D.Object or derived instance.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Object.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Rect2 AsRect2()()Reads the stored Electron2D.Rect2 value.
This method follows the validation and lifetime rules of its declaring type.
The stored rectangle.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Rect2.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Rect2I AsRect2I()()Reads the stored Electron2D.Rect2I value.
This method follows the validation and lifetime rules of its declaring type.
The stored integer rectangle.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Rect2I.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Rid AsRid()()Reads the stored Electron2D.Rid value.
This method follows the validation and lifetime rules of its declaring type.
The stored resource identifier.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Rid.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public System.String AsString()()Reads the stored string value.
This method follows the validation and lifetime rules of its declaring type.
The stored string.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.String.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.StringName AsStringName()()Reads the stored Electron2D.StringName value.
This method follows the validation and lifetime rules of its declaring type.
The stored string name.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.StringName.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Transform2D AsTransform2D()()Reads the stored Electron2D.Transform2D value.
This method follows the validation and lifetime rules of its declaring type.
The stored transform.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Transform2D.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Vector2 AsVector2()()Reads the stored Electron2D.Vector2 value.
This method follows the validation and lifetime rules of its declaring type.
The stored vector.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Vector2.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public Electron2D.Vector2I AsVector2I()()Reads the stored Electron2D.Vector2I value.
This method follows the validation and lifetime rules of its declaring type.
The stored integer vector.
-
System.InvalidCastException: Thrown when this variant is notElectron2D.Variant.Type.Vector2I.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant CreateFrom(System.Object)(System.Object value)Creates a Variant from any supported Electron2D 0.1.0 Preview value.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to store.
A Variant containing value.
-
System.ArgumentException: Thrown whenvalueis not part of the closed Variant type set. -
System.ArgumentOutOfRangeException: Thrown when an unsigned 64-bit integer cannot be represented by the signed 64-bit Variant integer type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public System.Boolean Equals(Electron2D.Variant)(Electron2D.Variant other)Tests two variants for equality.
This method follows the validation and lifetime rules of its declaring type.
-
other: The variant to compare with this value.
true if both variants have the same type and value; otherwise, false.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public System.Boolean Equals(System.Object)(System.Object obj)Tests whether an object is an equal Variant.
This method follows the validation and lifetime rules of its declaring type.
-
obj: The object to compare with this value.
true when obj is an equal Variant; otherwise, false.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant From(T)(T value)Creates a Variant from a supported value while preserving generic call sites.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to store.
-
T: The static C# type of the value.
A Variant containing value.
-
System.ArgumentException: Thrown whenTor the runtime value is not part of the closed Variant type set.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public System.Int32 GetHashCode()()Returns a hash code for this Variant.
This method follows the validation and lifetime rules of its declaring type.
A hash code suitable for dictionary keys.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public System.Boolean IsNil()()Returns whether this variant stores Electron2D.Variant.Type.Nil.
This method follows the validation and lifetime rules of its declaring type.
true for nil variants; otherwise, false.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public System.String ToString()()Returns a diagnostic string representation of the stored value.
This method follows the validation and lifetime rules of its declaring type.
A string representation of this Variant.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static System.Boolean op_Equality(Electron2D.Variant, Electron2D.Variant)(Electron2D.Variant left, Electron2D.Variant right)Tests two variants for equality.
This operator returns a value derived from the supplied operands.
-
left: The left variant. -
right: The right variant.
true if both variants are equal; otherwise, false.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.Boolean)(System.Boolean value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.Byte)(System.Byte value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.Double)(System.Double value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Callable)(Electron2D.Callable value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Collections.Array)(Electron2D.Collections.Array value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Collections.Dictionary)(Electron2D.Collections.Dictionary value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Color)(Electron2D.Color value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.NodePath)(Electron2D.NodePath value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Object)(Electron2D.Object value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Rect2)(Electron2D.Rect2 value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Rect2I)(Electron2D.Rect2I value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Rid)(Electron2D.Rid value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.StringName)(Electron2D.StringName value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Transform2D)(Electron2D.Transform2D value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Vector2)(Electron2D.Vector2 value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(Electron2D.Vector2I)(Electron2D.Vector2I value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.Int16)(System.Int16 value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.Int32)(System.Int32 value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.Int64)(System.Int64 value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.SByte)(System.SByte value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.Single)(System.Single value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.String)(System.String value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.UInt16)(System.UInt16 value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.UInt32)(System.UInt32 value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static Electron2D.Variant op_Implicit(System.UInt64)(System.UInt64 value)Converts a Boolean value to a Variant.
The conversion follows the validation rules of the source and target types.
-
value: The value to use.
The converted value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Kind: Method
public static System.Boolean op_Inequality(Electron2D.Variant, Electron2D.Variant)(Electron2D.Variant left, Electron2D.Variant right)Tests two variants for inequality.
This operator returns a value derived from the supplied operands.
-
left: The left variant. -
right: The right variant.
true if the variants are different; otherwise, false.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Variant
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.