private static IDictionary BuildMappingDictionary()

in src/DeloitteDigital.Atlas/Mapping/Meta/PropertyMetaBuilder.cs [30:46]


        private static IDictionary<string, Type> BuildMappingDictionary(Type modelType)
        {
            var mappingDictionary = new Dictionary<string, Type>();
            var mappingClasses = GetAllPropertyMetaClasses();

            foreach (var mappingClass in mappingClasses)
            {
                var genericType = mappingClass.MakeGenericType(modelType);
                var instance = Activator.CreateInstance(genericType) as IPropertyMeta;
                if (instance != null && !mappingDictionary.ContainsKey(instance.PropertyKey))
                {
                    mappingDictionary.Add(instance.PropertyKey, instance.GetType());
                }
            }

            return mappingDictionary;
        }