Пример #1
0
        public int CompareTo(String16 other)
        {
            var cmp = _1.CompareTo(other._1);

            if (cmp != 0)
            {
                return(cmp);
            }
            cmp = _2.CompareTo(other._2);
            return(cmp != 0 ? cmp : _3.CompareTo(0UL));
        }
Пример #2
0
 public bool Equals(String16 other) => this._1 == other._1 && this._2 == other._2 && this._3 == 0UL && this._4 == 0UL;