fork(2) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. decimal[] decimal_array = new decimal[] {1.1M, 1.2M, 1.3M, 1.4M };
  8. string[] string_array = Array.ConvertAll(decimal_array, x => x.ToString());
  9.  
  10. foreach (var item in string_array)
  11. {
  12. Console.WriteLine("{0} - {1}", item.GetType(), item);
  13. }
  14. }
  15. }
Success #stdin #stdout 0.03s 33856KB
stdin
Standard input is empty
stdout
System.String - 1.1
System.String - 1.2
System.String - 1.3
System.String - 1.4