private bool Equals(TypeSpecificationSignature x, TypeSpecificationSignature y) { if (ReferenceEquals(x, y)) { return(true); } if (x is null || y is null || x.ElementType != y.ElementType) { return(false); } return(Equals(x.BaseType, y.BaseType)); }
private int GetHashCode(TypeSpecificationSignature obj) => (int)obj.ElementType << ElementTypeOffset ^ GetHashCode(obj.BaseType);
/// <summary> /// Loads the details of the underlying type and specification. /// </summary> private void LoadDetails() { TypeSpecificationSignature signiture = this.Signiture; _details = signiture.GetTypeDetails(this); }