Solved

Create C# Anonymous Types -Runttime

Posted on 2010-08-31
1
384 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now