Tuple Class¶
AMPL immutable tuple
- Namespace
ampl
- Assemblies
- AMPL
Inheritance Hierarchy¶
System.Object
ampl.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 <xref href=”System.Object” data-throw-if-not-resolved=”false”></xref>, is equal to this instance, implements deep comparison
Return 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 <xref href=”System.String” data-throw-if-not-resolved=”false”></xref> that represents this instance.
Return type: System.String public override string ToString()
-
Properties¶
-
ampl.Tuple.Item[System.Int32]
Gets the <xref href=”ampl.Variant” data-throw-if-not-resolved=”false”></xref> at 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; }
-