コード例 #1
0
            public GenericTypeInstanceKey(DefType typeDefinition, Instantiation instantiation)
            {
                _typeDefinition = typeDefinition;
                _instantiation  = instantiation;

                _hashCode = instantiation.ComputeGenericInstanceHashCode(typeDefinition.GetHashCode());
            }
コード例 #2
0
            public RuntimeMethodKey(bool unboxingStub, DefType owningType, MethodNameAndSignature nameAndSignature)
            {
                _unboxingStub           = unboxingStub;
                _owningType             = owningType;
                _methodNameAndSignature = nameAndSignature;

                _hashCode = TypeHashingAlgorithms.ComputeMethodHashCode(owningType.GetHashCode(), TypeHashingAlgorithms.ComputeNameHashCode(nameAndSignature.Name));
            }
コード例 #3
0
 public override int GetHashCode()
 {
     return(_rawCanonType.GetHashCode());
 }