Answers for "c# string array convert to integer array"

C#
7

convert string array to int C#

using System;

public class Example
{
	public static void Main()
	{
		string[] strings = new string[] {"1", "2", "3"};

		int[] ints = Array.ConvertAll(strings, s => int.Parse(s));
		Console.WriteLine(String.Join(",", ints));
	}
}
Posted by: Guest on March-10-2020
0

c# convert enumb to int array

int[] result = enumArray.Cast<int>().ToArray();
Posted by: Guest on September-11-2020

Code answers related to "c# string array convert to integer array"

C# Answers by Framework

Browse Popular Code Answers by Language