I'm working on a project where I have a list of objects with a nested list of which I want to make a backup before I update the original list. I'm cl ...
I'm working on a project where I have a list of objects with a nested list of which I want to make a backup before I update the original list. I'm cl ...
Suppose I have a list: So I can easily add and remove users from the collection. I want to be able to pass this list to a function that does somet ...
I want to convert two lists with the same index into a single list. Given this: until now, I used this: But I really want to use short code as p ...
I am creating an app in UWP and actually noticed that the System.Converter and Array.ConvertAll functions doesn't exist in there... Why ? :/ Is there ...
I can convert string[] to byte[] like in the following code: But I can't do the same with LINQ like in the code below: How do I make this work i ...
I'm trying to understand the syntax for ConvertAll in C#, and despite looking at several examples and trying to copy them, I can't get the following l ...
I recently learned about List's .ConvertAll extension. I used it a couple times in code today at work to convert a large list of my objects to a list ...
I have a private member of type List<T> where the T are rich domain objects. The domain in my application contains many methods that expect a T. ...
I have an array of Car objects I want to conver them to a list of Vehicle objects I thought this would work but its complaining that ConvertAll r ...
I tried to use the List.ConvertAll method and failed. What I am trying to do is convert a List<Int32> to byte[] I copped out and went this rout ...