Esempio n. 1
0
        public ListSerializer(Type type, Type innerType)
        {
            Type[] typeParams = { innerType };
            add = type.GetMethod("Add", typeParams);

            listType = type;
            from     = BlobTypedReader.GetSerializerForType(innerType);
        }
        public DictionarySerializer(Type type, Type leftType, Type innerType)
        {
            Type[] typeParams = { leftType, innerType };
            add = type.GetMethod("Add", typeParams);

            this.dictType = type;
            this.leftType = leftType;
            this.from     = BlobTypedReader.GetSerializerForType(innerType);
        }
Esempio n. 3
0
 public FieldSerializer(FieldInfo field)
 {
     this.field = field;
     this.from  = BlobTypedReader.GetSerializerForType(field.FieldType);
 }
Esempio n. 4
0
 public PropertySerializer(PropertyInfo prop)
 {
     this.prop = prop;
     this.from = BlobTypedReader.GetSerializerForType(prop.PropertyType);
 }