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); }
public ComplexPropertySerializer(PropertyInfo propertyInfo) : base(propertyInfo) { this.MemberAccessor = MemberAccessorFactory.Create(this.PropertyInfo); this.ObjectSerializer = ObjectSerializerFactory.Create(this.PropertyInfo.PropertyType); }