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

            _details = signiture.GetTypeDetails(this);
        }