Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Create C# Anonymous Types -Runttime

Posted on 2010-08-31
1
387 Views
Last Modified: 2012-08-14
With the new anonymous type class initializer 'New With ' then followed by an array of tuples, can you pass in this array of tuples at runtime rather than hard-coding it in a code file at design time?
0
Comment
Question by:Silas2
1 Comment
 
LVL 16

Accepted Solution

by:
SriVaddadi earned 250 total points
ID: 33566294
I dont think its possible. But there are something called Expando object through you could create dynamic types. Not sure if that is what you are looking for but here is an article

http://msdn.microsoft.com/en-us/magazine/ff796227.aspx
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question