Follow us on Twitter and LinkedIn to get the latest updates from the dev team!
AMPL base type, can store a number or a string
ampl
AMPL
Inheritance Hierarchy
Syntax
Methods
System.Object
System.Collections.Generic.Comparer{ampl.VariantRef}
ampl.VariantRef
[ClassInterface(ClassInterfaceType.None)] public class VariantRef : Comparer<VariantRef>, IComparer<VariantRef>, IComparer, IComparable, IVariantRef
System.Int32
public override int Compare(VariantRef x, VariantRef y)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
obj (System.Object) – An object to compare with this instance.
A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes <code data-dev-comment-type=”paramref” class=”paramref”>obj</code> in the sort order. Zero This instance occurs in the same position in the sort order as <code data-dev-comment-type=”paramref” class=”paramref”>obj</code>. Greater than zero This instance follows <code data-dev-comment-type=”paramref” class=”paramref”>obj</code> in the sort order.
public int CompareTo(object obj)