static MemberDrawersHandler() { Mapper = new TypeDrawerMapper(); Mapper.AddBuiltinTypes(); _cachedMemberDrawers = new Dictionary <int, BaseDrawer>(); _cachedCompositeDrawers = new Dictionary <int, List <BaseDrawer> >(); _cachedMethodDrawers = new Dictionary <int, MethodDrawer>(); //TODO: check if this is still needed CachedGetObjectDrawer = new Func <Type, BaseDrawer>(Mapper.GetDrawer).Memoize(); }
static MemberDrawersHandler() { Mapper = new TypeDrawerMapper(); Mapper.AddBuiltinTypes(); _cachedMemberDrawers = new Dictionary <int, BaseDrawer>(); _cachedCompositeDrawers = new Dictionary <int, List <BaseDrawer> >(); _cachedMethodDrawers = new Dictionary <int, MethodDrawer>(); _definesElementDrawingAttributes = new HashSet <Type>() { typeof(PerItemAttribute), typeof(PerKeyAttribute), typeof(PerValueAttribute) }; //TODO: check if this is still needed GetCachedObjectDrawer = new Func <Type, BaseDrawer>(Mapper.GetDrawer).Memoize(); }