On Fri, 25 Jul 2008 07:54:06 -0700, Phill
<Phill@discussi ons.microsoft.c omwrote:
Sure, just write a named class to do the same thing. The anonymous class
just allows you to not litter your code with little class declarations,
but there's no reason you can't write the class explicitly instead.
Pete
<Phill@discussi ons.microsoft.c omwrote:
Thanks for the reply. That is what I am trying to do. I guess I don't
have
anonymous type support because it doesn't like the syntax for this:
var item = new { Type_ID = rdr[0], Type = rdr[1] };
says Type is expected. I'm using VS 2005, target is Pocket PC. Is there
another way to do it?
have
anonymous type support because it doesn't like the syntax for this:
var item = new { Type_ID = rdr[0], Type = rdr[1] };
says Type is expected. I'm using VS 2005, target is Pocket PC. Is there
another way to do it?
just allows you to not litter your code with little class declarations,
but there's no reason you can't write the class explicitly instead.
Pete
Comment