c# - Convert List(of object) to List(of string) -


Is there a way to convert list (of a object) to list ( String of) without rotating all items in C # or vb.net?

Update: The best way is probably to make a new selection.

  MyList.Select (i.o.ToString (T) ()  

or

  myList.Select (i = & gt; i.ToString () );  

It is possible to create a new list without running. You can wrap the list listed in a container which implements the IList.

You can use the lazy evaluation version of a code by IEnumerable & lt; String & gt; You can use LINQ to get from the list of objects in this way:

  var stringList = myList.OfType & lt; String & gt; ();  

Comments