示例#1
0
 public override int GetHashCode()
 {
     int result;
     result = IndexPropName.GetHashCode();
     result = 31 * result + CoercionType.GetHashCode();
     return result;
 }
示例#2
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked
     {
         return
             (((IndexPropName != null ? IndexPropName.GetHashCode() : 0) * 397) ^
              (CoercionType != null ? CoercionType.GetHashCode() : 0));
     }
 }
示例#3
0
        public override bool Equals(object o)
        {
            if (this == o) {
                return true;
            }

            if (o == null || GetType() != o.GetType()) {
                return false;
            }

            var that = (IndexedPropDesc) o;

            if (CoercionType != that.CoercionType) {
                return false;
            }

            if (!IndexPropName.Equals(that.IndexPropName)) {
                return false;
            }

            return true;
        }
示例#4
0
        public int CompareTo(Object o)
        {
            var other = (IndexedPropDesc)o;

            return(IndexPropName.CompareTo(other.IndexPropName));
        }