SoFunction
Updated on 2025-03-07

Method of converting C# string array into shaping array

This article describes the method of converting C# string arrays into shaping arrays. Share it for your reference. The specific implementation method is as follows:

/// <summary>
/// Convert string array to shape array/// </summary>
/// <param name="Content">String array</param>/// &lt;returns&gt;&lt;/returns&gt;
public static int[] ToIntArray(string[] Content)
{
  int[] c = new int[];
  for(int i = 0; i &lt; ; i++) {
    c[i] = Convert.ToInt32(Content[i].ToString());
  }
  return c;
}

I hope this article will be helpful to everyone's C# programming.