Tuple Class¶
AMPL immutable tuple
- Namespace
ampl- Assemblies
- AMPL
Inheritance Hierarchy¶
System.Objectampl.Tuple
Constructors¶
-
Tuple()¶ public Tuple()
-
Tuple(System.Object) public Tuple(object o)
-
Tuple(System.Object[]) public Tuple(params object[] objects)
-
Methods¶
-
Equals(System.Object)¶ Determines whether the specified
System.Object, is equal to this instance, implements deep comparisonReturn type: System.Boolean public override bool Equals(object obj)
-
FromArray(System.Object[])¶ Create an array of tuples from an array of objects. Each object in the first level array (being it a string, a number or an array) is interpreted as the contents of each returned Tuple.
Return type: ampl.Tuple<ampl.Tuple>[] public static Tuple[] FromArray(params object[] objects)
-
GetHashCode()¶ Returns a hash code for this instance.
Return type: System.Int32 public override int GetHashCode()
-
ToString()¶ Returns a
System.Stringthat represents this instance.Return type: System.String public override string ToString()
-
Properties¶
-
ampl.Tuple.Item[System.Int32] Gets the
ampl.Variantat the specified index.Return type: ampl.Variant public Variant this[int index] { get; }
-
Size()¶ Gets the size (number of elements) of this tuple
Return type: System.Int32 public int Size { get; }
-