Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

Create C# Anonymous Types -Runttime

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
Silas2
Asked:
Silas2
1 Solution
 
SriVaddadiCommented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now