Exemple #1
0
        public NamingSettings(CacheSet mapperScopedCache)
        {
            _idMemberCache = mapperScopedCache.CreateScopedWithHashCodes <TypeKey, Member>();

            _matchingNameFactories = new List <ConfiguredNamingPattern>
            {
                ConfiguredNamingPattern.Global(member => IsTypeIdentifier(member) ? "Id" : null),
                ConfiguredNamingPattern.ForGetOrSetMethod,
                ConfiguredNamingPattern.ForIdentifierName
            };

            _joinedNameFactories = new List <Func <IEnumerable <string>, string> >
            {
                names => names.Join(string.Empty),
                names => names.Join(".")
            };
        }
Exemple #2
0
 public MemberCache(CacheSet cacheSet)
 {
     _membersCache = cacheSet.CreateScopedWithHashCodes <TypeKey, IList <Member> >();
 }
 public DerivedTypesCache(CacheSet cacheSet)
 {
     _assemblies         = new List <Assembly>();
     _typesByAssembly    = cacheSet.CreateScopedWithHashCodes <Assembly, IEnumerable <Type> >();
     _derivedTypesByType = cacheSet.CreateScopedWithHashCodes <Type, IList <Type> >();
 }