Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 private int GetHashCode(TypeSpecificationSignature obj) =>
 (int)obj.ElementType << ElementTypeOffset ^ GetHashCode(obj.BaseType);
Esempio n. 3
0
        /// <summary>
        /// Loads the details of the underlying type and specification.
        /// </summary>
        private void LoadDetails()
        {
            TypeSpecificationSignature signiture = this.Signiture;

            _details = signiture.GetTypeDetails(this);
        }