Source/NFX.Erlang/Types/ErlTupleBase.cs
/// <summary>
/// Compare this instance to the IErlObject.
/// Negative value means that the atom is less than obj, positive - greater than the obj
/// </summary>
Compare this instance to the IErlObject.
Negative value means that the atom is less than obj, positive - greater than the obj
Compare this instance to the IErlObject . Negative value means that the atom is less than obj positive - greater than the obj
public int CompareTo(IErlObject obj)
    {
      var rhs = obj as ErlTupleBase;
      if (rhs == null)
        return TypeOrder < obj.TypeOrder ? -1 : 1;
      int n = Math.Min(m_Items.Count, rhs.Count);
      for (int i = 0; i < n; i++)
      {
        int m = m_Items[i].CompareTo(rhs[i]);
        if (m != 0)
          return m;
      }
      return m_Items.Count.CompareTo(rhs.Count);
    }
public int CompareTo ( IErlObject obj ) { var rhs = obj as ErlTupleBase ; if ( rhs == null ) return TypeOrder < obj . TypeOrder ? - 1 : 1 ; int n = Math . Min ( m_Items . Count , rhs . Count ) ; for ( int i = 0 ; i < n ; i ++ ) { int m = m_Items [ i ] . CompareTo ( rhs [ i ] ) ; if ( m != 0 ) return m ; } return m_Items . Count . CompareTo ( rhs . Count ) ; }
Compare this instance to the IErlObject.
Compare this instance to the IErlObject .
obj
IErlObject