List listOfNumbers = new List() { 1, 2, 3 };
List listOfStrings = listOfNumbers.ConvertAll(n => n.ToString());
listOfNumbers = listOfStrings.ConvertAll(long.Parse);
Subscribe to:
Post Comments (Atom)
Performance: Linking a List of Child Objects To a List of Parent Objects
Many a time I've had to build a relationship where a parent object has a list of child objects linked to it, where the parent itself als...
-
Visual Studio, by default, will include whitespace in its comparison when comparing two files. This is a workaround that seems to get arou...
-
WPF doesn’t have a built-in property to hide the title bar’s Min, Max and Close buttons, however, you can do it with a few lines of P/Invoke...
No comments:
Post a Comment