public Primitive(Type type, EncodingBase encoder) : base(null, type) { this.AmqpType = AmqpType.Primitive; this.encoder = encoder; }
public Converted(AmqpType amqpType, Type source, Type target, Func<object, object> getTarget, Func<object, object> getSource) : base(null, target) { this.AmqpType = amqpType; this.source = source; this.target = target; this.GetTarget = getTarget; this.GetSource = getSource; this.encoder = AmqpEncoding.GetEncoding(target); }