5 public static void BuildNode (ref string label)
8 label += s + s + s + s;
11 public static void BuildNode (ref string[] label)
15 label[idx++] += s + s + s + s;
18 public static void BuildNode_B (ref object label)
24 public static string BuildNode_C (ref string label)
26 string[] a = new string [2];
31 a [i++] += label + s + s + s;
35 public static string BuildNode_D ()
37 System.Collections.ArrayList values = new System.Collections.ArrayList ();
38 for (int i = 0; i < 6; i++)
40 string[] strs = new string [values.Count];
42 foreach (int val in values) {
43 strs [idx] = "Value:";
44 strs [idx++] += val.ToString ();
50 public static void BuildNode_E (ref string[,] label)
54 label = new string [1, 1];
55 label[idx++, idx - 1] += s + s + s + s;
58 public static int Main ()
63 Console.WriteLine (str);
64 if (str != "testaaaa")
68 BuildNode_B (ref ostr);
69 Console.WriteLine (ostr);
70 if (ostr.ToString () != "testbb")
74 string res = BuildNode_C (ref str);
75 Console.WriteLine (str);
79 Console.WriteLine (res);
80 if (res != "atestbbb")
83 string[] sa = new string [1];
85 Console.WriteLine (sa [0]);
90 Console.WriteLine (str);
95 BuildNode_E (ref sa2);
96 Console.WriteLine (sa2 [0, 0]);
97 if (sa2 [0,0] != "aaaa")