Exemple #1
0
            public AbcMethod Find(IMethod method)
            {
                var       key = MemberKey.BuildKey(method);
                AbcMethod value;

                return(_cache.TryGetValue(key, out value) ? value : null);
            }
Exemple #2
0
            public void Add(AbcTrait trait)
            {
                string key = MemberKey.BuildKey(trait.Name);

                _cache.Add(key, trait.Method);
            }
Exemple #3
0
 private static string KeyOf(ITypeMember member)
 {
     return(Prefix(KindOf(member)) + MemberKey.BuildKey(member));
 }
Exemple #4
0
 private static string KeyOf(AbcTrait trait)
 {
     return(Prefix(trait.Kind) + MemberKey.BuildKey(trait.Name));
 }