コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Index;
         hashCode = ( hashCode * 397 ) ^ FieldID.GetHashCode();
         hashCode = ( hashCode * 397 ) ^ ( Name                 != null ? Name.GetHashCode(StringComparison.Ordinal) : 0 );
         hashCode = ( hashCode * 397 ) ^ ( Properties           != null ? Properties.GetHashCode() : 0 );
         hashCode = ( hashCode * 397 ) ^ ( StructureDescription != null ? StructureDescription.GetHashCode() : 0 );
         hashCode = ( hashCode * 397 ) ^ ( EnumDescription      != null ? EnumDescription.GetHashCode() : 0 );
         hashCode = ( hashCode * 397 ) ^ ( NodeID               != null ? NodeID.GetHashCode() : 0 );
         return hashCode;
     }
 }