KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I got an anonymous type inside a List anBook: var anBook=new []{ new {Code=10, Book ="Harry Potter"}, new {Code=11, Book="James Bond"} }; Is to possible to convert it to a List with the following definition of clearBook: public class ClearBook { int Code; string Book; } by using direct conversion, i.e., without looping through anBook?
Tags (comma-separated)
Save Edits
Cancel