c# - List<a> to List<b> converting when a and b have the same structur? -


I use C # 3.5 Dotnet Framework and Linux.

I have 2 views, schema, but in linq which are completely different things.

How can I change the list to list B?

You can create a new list of B:

  list & Lt; B & gt; ListOfB = listOfA.Select (a => newb {fu = auf, bar = one. Bar, // etc ...}). ToList ();  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -