private void LoadNodeArray <T>(ref T[] array, XmlNode node, string name) { int[] split = CodeBox.StringSplit(node.SelectSingleNode(name).InnerText); array = new T[split.Length]; for (int index = 0; index < array.Length; index++) { array[index] = (T)Convert.ChangeType(split[index], typeof(T)); } }