Esempio n. 1
0
        public int CompareTo(IValue other)
        {
            GuidWrapper otherUuid = other.GetRawValue() as GuidWrapper;

            if (otherUuid == null)
            {
                throw RuntimeException.ComparisonNotSupportedException();
            }

            return(_value.CompareTo(otherUuid._value));
        }
Esempio n. 2
0
        public bool Equals(IValue other)
        {
            GuidWrapper otherUuid = other.GetRawValue() as GuidWrapper;

            if (otherUuid == null)
            {
                return(false);
            }
            else
            {
                return(_value.Equals(otherUuid._value));
            }
        }