コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsVirtual.GetHashCode();
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Getter != null ? Getter.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Setter != null ? Setter.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FullName != null ? FullName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DeclaringType != null ? DeclaringType.GetHashCode() : 0);
         return(hashCode);
     }
 }