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); } }
protected bool Equals(TypeReference other) { return(IsPredefined.Equals(other.IsPredefined) && string.Equals(Text, other.Text) && IsGeneric.Equals(other.IsGeneric) && IsReferenceType.Equals(other.IsReferenceType)); }