コード例 #1
0
ファイル: ErlLong.cs プロジェクト: dotnetchris/nfx
        /// <summary>
        /// Compare this instance to the IErlObject.
        /// Negative value means that the value is less than obj, positive - greater than the obj
        /// </summary>
        public int CompareTo(IErlObject obj)
        {
            if (!(obj is ErlLong))
            {
                return(TypeOrder < obj.TypeOrder ? -1 : 1);
            }

            ErlLong rhs = (ErlLong)obj;

            return(Value.CompareTo(rhs.Value));
        }
コード例 #2
0
ファイル: ErlOutputStream.cs プロジェクト: rioka/nfx
 /// <summary>
 /// Write an Erlang long to the stream
 /// </summary>
 public void WriteLong(ErlLong l)
 {
     writeLong(l, l < 0L);
 }
コード例 #3
0
ファイル: ErlLong.cs プロジェクト: dotnetchris/nfx
 /// <summary>
 /// Determine if two instances are equal
 /// </summary>
 public bool Equals(ErlLong o)
 {
     return(Value == o.Value);
 }