static void Main(string[] args) { NamedIntArray x = new NamedIntArray(); x["zero"] = 99; Console.WriteLine(x["zero"]); }
private static void IndexingOnStringsExample() { /* A program can access elements in the array by specifying a text indexer for the location. * This program stores the value 99 in location "zero" */ NamedIntArray x = new NamedIntArray(); x["zero"] = 99; Console.WriteLine(x["zero"]); }
public static void TestMyIntArray() { IntArrayWrapper x = new IntArrayWrapper(); x[0] = 99; Console.WriteLine(x[0]); NamedIntArray xx = new NamedIntArray(); xx["zero"] = 99; Console.WriteLine(xx["zero"]); }