コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsPredefined.GetHashCode();
         hashCode = (hashCode * 397) ^ (Text != null ? Text.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsGeneric.GetHashCode();
         hashCode = (hashCode * 397) ^ IsReferenceType.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
 protected bool Equals(TypeReference other)
 {
     return(IsPredefined.Equals(other.IsPredefined) && string.Equals(Text, other.Text) && IsGeneric.Equals(other.IsGeneric) && IsReferenceType.Equals(other.IsReferenceType));
 }