コード例 #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>();
        }
コード例 #2
0
 public TypedSerializerManager([NotNull] DynamicSerializationContext context)
 {
     Context      = context;
     _serializers = new ConditionalWeakTable <Type, ITypedSerializer>();
 }