public class Example { public string[] Layers = new string[] { }; public Example() { //Just to be safe... this.Layers = new string[] { }; } }
Example test = new Example(); test.Layers[Convert.ToInt32(numericUpDown1.Value)] = textbox1.Text;
public class Example { public string[] Layers = new string[7] ; public Example() { //Just to be safe... this.Layers = new string[7] ; } }
this.Layers = new string[] { "a", "b", "c" };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)