예제 #1
0
 public override int GetHashCode()
 {
     return(ObjectExtensions.ShiftPrimeXOR(
                (name != null) ? name.GetHashCode() : 0,
                (defaultValueST != null) ? defaultValueST.GetHashCode() : 0
                ));
 }
예제 #2
0
        public override int GetHashCode()
        {
            int nameHash         = (name != null) ? name.GetHashCode() : 0;
            int defaultValueHash = (defaultValueST != null) ? defaultValueST.GetHashCode() : 0;

            return(nameHash ^ defaultValueHash);
        }