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);
        }
예제 #2
0
        public ComplexPropertySerializer(PropertyInfo propertyInfo) : base(propertyInfo)
        {
            this.MemberAccessor = MemberAccessorFactory.Create(this.PropertyInfo);

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