DemoObject.TextToInts C# (CSharp) Method

TextToInts() public method

public TextToInts ( string text ) : int[]
text string
return int[]
	public int[] TextToInts (string text)
	{
		string[] parts = text.Split (' ');
		int[] rets = new int[parts.Length];

		for (int i = 0 ; i != parts.Length ; i++)
			rets[i] = Int32.Parse (parts[i]);

		return rets;
	}