Example #1
0
        public int CompareTo(SemanticTypeBase <byte[]> other)
        {
            int nret = 0;

            if (other == null)
            {
                return(1);
            }
            if (other.Value == null)
            {
                if (this.Value == null)
                {
                    nret = 0;
                }
                else
                {
                    nret = 0;
                }
            }
            else if (this.Value == null)
            {
                nret = -1;
            }
            else
            {
                for (int i = 0; i < other.Value.Length && nret == 0; ++i)
                {
                    nret = this.Value[i].CompareTo(other.Value[i]);
                }
            }
            return(nret);
        }
Example #2
0
 public override bool Equals(SemanticTypeBase <byte[]> other)
 {
     return(this.Value == other.Value || this.CompareTo(other) == 0);
 }