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); }
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); }
public bool Equals(SharpLangEETypeDefinition other) { return(ModulePointer.Equals(other.ModulePointer) && Handle.Equals(other.Handle)); }
public override bool Equals(object?obj) { return(obj is TypeDefinitionType t && handle.Equals(t.handle)); }