public PrimitivePropertySerializer(PropertyInfo propertyInfo) : base(propertyInfo)
        {
            this.MemberAccessor = (IMemberAccessor <TValue>)MemberAccessorFactory.Create(this.PropertyInfo);

            this.ObjectSerializer =
                CreateObjectSerializer(); //new PrimitiveSerializer<TValue>();//(PrimitiveSerializer<TValue>)PrimitiveSerializerFactory.Create(propertyInfo);
        }
Beispiel #2
0
        public ComplexPropertySerializer(PropertyInfo propertyInfo) : base(propertyInfo)
        {
            this.MemberAccessor = MemberAccessorFactory.Create(this.PropertyInfo);

            this.ObjectSerializer = ObjectSerializerFactory.Create(this.PropertyInfo.PropertyType);
        }