Sunday, 18 August 2013

How to define anonymous types in C++/CLI?

How to define anonymous types in C++/CLI?

I'm writing a C++/CLI class, and I need to have something like this:
System::Object^ person = gcnew { firstName = "John", lastName = "Smith" };
Here is what I found for C#: MSDN - Anonymous Types
Does anyone have an example for C++/CLI, if it is at all possible to achieve?

No comments:

Post a Comment