public bool Equals(UnificationKey other)
 {
     if (!TypeDefinitionHandle.Equals(other.TypeDefinitionHandle))
     {
         return(false);
     }
     if (!(Reader == other.Reader))
     {
         return(false);
     }
     if (!(GenericParameterHandle.Equals(other.GenericParameterHandle)))
     {
         return(false);
     }
     return(true);
 }
示例#2
0
            public bool Equals(UnificationKey other)
            {
                if (!TypeDefinitionHandle.Equals(other.TypeDefinitionHandle))
                {
                    return(false);
                }

                if (!Reader.Equals(other.Reader))
                {
                    return(false);
                }

                // The TypeHandle is not actually part of the key but riding along for convenience (see commment at head of class.)
                // If the other parts of the key matched, this must too.
                Debug.Assert(TypeHandle.Equals(other.TypeHandle));
                return(true);
            }
示例#3
0
 public bool Equals(SharpLangEETypeDefinition other)
 {
     return(ModulePointer.Equals(other.ModulePointer) && Handle.Equals(other.Handle));
 }
示例#4
0
 public override bool Equals(object?obj)
 {
     return(obj is TypeDefinitionType t && handle.Equals(t.handle));
 }