Follow us on Twitter and LinkedIn to get the latest updates from the dev team!
AMPL immutable tuple
ampl
AMPL
Inheritance Hierarchy
Syntax
Constructors
Methods
Fields
Properties
System.Object
ampl.Tuple
public class Tuple
public Tuple()
public Tuple(object o)
public Tuple(params object[] objects)
Determines whether the specified System.Object, is equal to this instance, implements deep comparison
System.Boolean
public override bool Equals(object obj)
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.
ampl.Tuple<ampl.Tuple>[]
public static Tuple[] FromArray(params object[] objects)
Returns a hash code for this instance.
System.Int32
public override int GetHashCode()
Returns a System.String that represents this instance.
System.String
public override string ToString()
TupleBase
public TupleBase inner
Gets the ampl.Variant at the specified index.
ampl.Variant
public Variant this[int index] { get; }
Gets the size (number of elements) of this tuple
public int Size { get; }