Tuple Class¶
AMPL immutable tuple
- Namespace
- Assemblies
AMPL
Inheritance Hierarchy¶
System.Object
Syntax¶
public class Tuple
- class 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
System.Object
, 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
System.String
that represents this instance.- Return type
System.String
public override string ToString()
Fields¶
- inner()¶
- Return type
TupleBase
public TupleBase inner
Properties¶
- ampl.Tuple.Item[System.Int32]¶
Gets the
ampl.Variant
at the specified index.- Return type
public Variant this[int index] { get; }
- ampl.Tuple.Size¶
Gets the size (number of elements) of this tuple
- Return type
System.Int32
public int Size { get; }