Esempio n. 1
0
 static void WriteObject(AmqpSerializer serializer, ByteBuffer buffer, object graph)
 {
     if (graph == null)
     {
         Encoder.WriteObject(buffer, null);
     }
     else
     {
         SerializableType type = serializer.GetType(graph.GetType());
         type.WriteObject(buffer, graph);
     }
 }
Esempio n. 2
0
        static TAs ReadObject <T, TAs>(AmqpSerializer serializer, ByteBuffer buffer)
        {
            SerializableType type = serializer.GetType(typeof(T));

            return((TAs)type.ReadObject(buffer));
        }
Esempio n. 3
0
 public GenericListType(AmqpSerializer serializer, Type type, Type itemType, MethodAccessor addAccessor)
     : base(serializer, type)
 {
     this.itemType          = serializer.GetType(itemType);
     this.addMethodAccessor = addAccessor;
 }
Esempio n. 4
0
 public ArrayType(AmqpSerializer serializer, Type type, Type itemType)
     : base(serializer, type)
 {
     this.itemType = itemType;
     this.listType = serializer.GetType(typeof(List <>).MakeGenericType(itemType));
 }