public AbcMethod Find(IMethod method) { var key = MemberKey.BuildKey(method); AbcMethod value; return(_cache.TryGetValue(key, out value) ? value : null); }
public void Add(AbcTrait trait) { string key = MemberKey.BuildKey(trait.Name); _cache.Add(key, trait.Method); }
private static string KeyOf(ITypeMember member) { return(Prefix(KindOf(member)) + MemberKey.BuildKey(member)); }
private static string KeyOf(AbcTrait trait) { return(Prefix(trait.Kind) + MemberKey.BuildKey(trait.Name)); }