2 instantiations of TypeKeyByName
Microsoft.Diagnostics.DataContractReader.Contracts (2)
Contracts\RuntimeTypeSystem_1.cs (2)
1102
if (_typeHandlesByName.TryGetValue(new
TypeKeyByName
(name, nameSpace, modulePtr), out TypeHandle existing))
1175
_ = _typeHandlesByName.TryAdd(new
TypeKeyByName
(name, nameSpace, modulePtr), foundTypeHandle);
4 references to TypeKeyByName
Microsoft.Diagnostics.DataContractReader.Contracts (4)
Contracts\RuntimeTypeSystem_1.cs (4)
31
private readonly Dictionary<
TypeKeyByName
, TypeHandle> _typeHandlesByName = new();
111
private readonly struct TypeKeyByName : IEquatable<
TypeKeyByName
>
122
public bool Equals(
TypeKeyByName
other) => Name == other.Name && Namespace == other.Namespace && Module == other.Module;
123
public override bool Equals(object? obj) => obj is
TypeKeyByName
other && Equals(other);