List.ConvertAll - badly named?
Chapter 3: Parameterized typing with generics: 3.2.3
Last updated: 1/30/2008
In listing 3.2, I use
List.ConvertAll to "convert" each element of a list of integers into its square root (as a double). Is the word "convert" really appropriate here? I guess it depends on what you understand by "conversion". It's not really a different representation of the same value, which is what conversion often means (consider currency conversion, numeric conversions etc). It's really a projection, mapping or transformation.