P
Peter Larsen [CPH]
Hi,
I'm wondering if the use of anonymous types slow down the app at runtime or
not.
See the following sample:
var obj1 = from item in list select new { item.ClassID, AnyName
= item.ClassID };
foreach (var item in obj1)
{
string s1 = item.ClassID;
string s2 = item.AnyName;
}
I know lot of the work is done at compile time, but i still wondering if it
slows down the application to use anonymous types:
Is it slower to use ?
BR
Peter
I'm wondering if the use of anonymous types slow down the app at runtime or
not.
See the following sample:
var obj1 = from item in list select new { item.ClassID, AnyName
= item.ClassID };
foreach (var item in obj1)
{
string s1 = item.ClassID;
string s2 = item.AnyName;
}
I know lot of the work is done at compile time, but i still wondering if it
slows down the application to use anonymous types:
Is it slower to use ?
BR
Peter