Ejemplo n.º 1
0
        public BinaryX20(FieldPredicate isSerializableField, PropertyPredicate isSerializableProperty)
        {
            _Logic = new X20Logic(isSerializableField, isSerializableProperty);

            _Serializers = new List <BaseSerializer>()
            {
                PrimitiveSerializer.Instance,
                new V2Serializer(),
                new V3Serializer(),
                new V4Serializer(),
                new BoundsSerializer(),
                new LayerMaskSerializer(),
                new RectSerializer(),
                new ArraySerializer(),
                new DictionarySerializer(),
                new EnumSerializer(),
                new CollectionSerializer(),
                new TypeSerializer(),
                new ReflectiveSerializer(),
            };

            _Ctx               = new SerializationContext(this);
            _Marker            = new ReferenceMarker();
            _CachedSerializers = new Dictionary <Type, BaseSerializer>();

            SetMode(1);
        }
Ejemplo n.º 2
0
 public virtual MemberInfo[] GetMembers(Type type)
 {
     return(X20Logic.CachedGetSerializableMembers(type));
 }