コード例 #1
0
 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;
 }
コード例 #2
0
 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;
        }
コード例 #4
0
 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;
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 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;
 }
コード例 #9
0
 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);
 }