Esempio n. 1
0
        public TypedSerializer([NotNull] DynamicSerializationContext context, [NotNull] Type containerType)
        {
            Context       = context;
            ContainerType = containerType;

            _propertyAttributeCache = new Dictionary <PropertyInfo, ScriptableObjectPropertyAttribute>();
            _fieldAttributeCache    = new Dictionary <FieldInfo, ScriptableObjectPropertyAttribute>();

            _createdSetters = new Dictionary <string, MemberSetter>();
        }
 public TypedSerializerManager([NotNull] DynamicSerializationContext context)
 {
     Context      = context;
     _serializers = new ConditionalWeakTable <Type, ITypedSerializer>();
 }