예제 #1
0
        public int CompareTo(String24 other)
        {
            var cmp = _1.CompareTo(other._1);

            if (cmp != 0)
            {
                return(cmp);
            }
            cmp = _2.CompareTo(other._2);
            if (cmp != 0)
            {
                return(cmp);
            }
            cmp = _3.CompareTo(other._3);
            return(cmp != 0 ? cmp : _4.CompareTo(0UL));
        }
예제 #2
0
 public bool Equals(String24 other) => this._1 == other._1 && this._2 == other._2 && this._3 == other._3 && this._4 == 0UL;