public SubItemSerializer(Type type, int key, ISerializerProxy proxy, bool recursionCheck) { this.type = type ?? throw new ArgumentNullException(nameof(type)); this.proxy = proxy ?? throw new ArgumentNullException(nameof(proxy)); this.key = key; this.recursionCheck = recursionCheck; }
public SubItemSerializer(Type type, int key, ISerializerProxy proxy ) { if (type == null) throw new ArgumentNullException("type"); if (proxy == null) throw new ArgumentNullException("proxy"); this.type = type; this.proxy= proxy; this.key = key; }
public SubItemSerializer(Type type, int key, ISerializerProxy proxy, bool recursionCheck, bool isObjectSurrogateForValueType) { if (type == null) throw new ArgumentNullException("type"); if (proxy == null) throw new ArgumentNullException("proxy"); this.type = type; this.proxy= proxy; this.key = key; this.recursionCheck = recursionCheck; this.isObjectSurrogateForValueType = isObjectSurrogateForValueType; }
public SubItemSerializer(Type type, int key, ISerializerProxy proxy) { if (type == null) { throw new ArgumentNullException("type"); } if (proxy == null) { throw new ArgumentNullException("proxy"); } this.type = type; this.proxy = proxy; this.key = key; }
public SubItemSerializer(Type type, int key, ISerializerProxy proxy, bool recursionCheck) { if (type == null) { throw new ArgumentNullException("type"); } if (proxy == null) { throw new ArgumentNullException("proxy"); } this.type = type; this.proxy = proxy; this.key = key; this.recursionCheck = recursionCheck; }
public SubItemSerializer(Type type, int key, ISerializerProxy proxy, bool recursionCheck) { if (type == (Type)null) { throw new ArgumentNullException("type"); } if (proxy == null) { throw new ArgumentNullException("proxy"); } this.type = type; this.proxy = proxy; this.key = key; this.recursionCheck = recursionCheck; }
public BaseTypeSerializer(Type type, Type declaringType, int key, ISerializerProxy proxy, bool recursionCheck) { if (type == null) { throw new ArgumentNullException("type"); } if (proxy == null) { throw new ArgumentNullException("proxy"); } this.type = type; this.declaringType = declaringType; this.proxy = proxy; this.key = key; this.recursionCheck = recursionCheck; }
public ModelTypeSerializer(Type type, int baseKey, ISerializerProxy concreteSerializerProxy, RuntimeTypeModel model) { if (type == null) { throw new ArgumentNullException(nameof(type)); } if (concreteSerializerProxy == null) { throw new ArgumentNullException(nameof(concreteSerializerProxy)); } if (model == null) { throw new ArgumentNullException(nameof(model)); } ExpectedType = type; _concreteSerializerProxy = concreteSerializerProxy; _model = model; _baseKey = baseKey; }
public NetObjectValueDecorator(Type type, int baseKey, bool asReference, bool asLateReference, ISerializerProxy concreteSerializerProxy, bool allowNullWireType, RuntimeTypeModel model) : this(type : type, asReference : asReference, asLateReference : asLateReference, allowNullWireType : allowNullWireType, model : model) { if (baseKey < 0) { throw new ArgumentOutOfRangeException(nameof(baseKey)); } _baseKey = baseKey; _baseKeySerializer = new ModelTypeSerializer(Helpers.GetNullableUnderlyingType(type) ?? type, baseKey, concreteSerializerProxy, model); }