Hi Rajesh,
I have almost no experience with C# bindings but I suppose you must use method
void TypeTranslator::NativeToManaged(::qpid::types::Variant::Map & qpidMap,
QpidMap ^
dict)
{
// For each object in the message map,
// create a .NET object and add it to the dictionary.
(and TypeTranslator::ManagedToNative for reverse conversion)
Kind regards,
Pavel Moravec
----- Original Message -----
> From: "Rajesh Khan" <rajeshkhan808@gmail.com>
> To: users@qpid.apache.org
> Sent: Tuesday, October 23, 2012 12:40:50 AM
> Subject: How would you receive this C++ List in C#
>
> Hi , I have something like this in my C++ program
>
> qpid::types::Variant::Map content;
> content["keyA"] = "ValA";
> content["KeyB"] = "ValB"
>
> qpid::types::Variant::List object;
> object.push_back(content);
>
> encode(object,message);
> sender_.send(message);
>
> Now in my C# I have something like this
> if ("amqp/list" == message_.ContentType)
> {
> Collection<object> content = new
> Collection<object>();
> message_.GetContent(content);
> //How could I get a Dictinary from this ?
> }
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
|