I have a CloudQueueMessage
and I want to insert "Hello World" - so I write:
CloudQueueMessage message = new CloudQueueMessage("Hello World");
it’s perfect.
My problem is that I want to put an object in place of "Hello World" like this:
CloudQueueMessage message = new CloudQueueMessage(new MyObject(parameter1, parameter2, ...));
But the compiler will not let me because it tells me:
The constructor CloudQueueMessage (MyObject) is undefined.
How can I achieve what I want?