get type of anonymous list
-
Hi all, let suppose var res = result.Select(s=> new {id=s.id,name=s.name}).ToList(); now i want pass this res in another method like func(res). Please tell me that how can i get the type of this res or how i can get data from res.
-
Hi all, let suppose var res = result.Select(s=> new {id=s.id,name=s.name}).ToList(); now i want pass this res in another method like func(res). Please tell me that how can i get the type of this res or how i can get data from res.
Don't post to multiple forums, you have already asked this in Q&A. If the question is in multiple locations you will sort through multiple responses and people responding will not benefit from other responses in other forums and possibly give you duplicated and/or conflicting responses.
No comment
-
Hi all, let suppose var res = result.Select(s=> new {id=s.id,name=s.name}).ToList(); now i want pass this res in another method like func(res). Please tell me that how can i get the type of this res or how i can get data from res.
Look this CodeProject Q/A.Get The type of anonymous list[^]
Wonde Tadesse MCTS