コード例 #1
0
 public void example()
 {
     PropertyIndexerClass pic = new PropertyIndexerClass();
     pic[0] = "HELLO";
     pic[1] = "WORLD";
     
     Console.WriteLine("Value 1 = "+pic[0]+ ", and Value 2 = "+pic[1]);
 }
コード例 #2
0
        public void example()
        {
            PropertyIndexerClass pic = new PropertyIndexerClass();

            pic[0] = "HELLO";
            pic[1] = "WORLD";

            Console.WriteLine("Value 1 = " + pic[0] + ", and Value 2 = " + pic[1]);
        }