Click here to Skip to main content
14,694,532 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
could you please tell me the code for convert a string array into a decimal array in c#?

its based on your Requirement.
check this

String array to decimal array

String array to decimal array
decimal[] decimal_array = new decimal[] {1.1M, 1.2M, 1.3M, 1.4M };
string[] string_array = Array.ConvertAll(decimal_array, x => x.ToString());

foreach (var item in string_array)
      Console.WriteLine("{0} - {1}", item.GetType(), item);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900