3 instantiations of Key
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (3)
23
return s_dictionary.TryGetValue(new
Key
(name, parent), out Symbol sym) ? FindCorrectKind(sym, kindmask) : null;
46
if (s_dictionary.TryGetValue(new
Key
(child.name, child.parent), out Symbol sym))
59
s_dictionary.Add(new
Key
(child.name, child.parent), child);
5 references to Key
Microsoft.CSharp (5)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (5)
18
private static readonly Dictionary<
Key
, Symbol> s_dictionary = new Dictionary<
Key
, Symbol>();
78
private readonly struct Key : IEquatable<
Key
>
89
public bool Equals(
Key
other) => _name == other._name && _parent == other._parent;
97
return obj is
Key
key && Equals(key);