Example #1
0
 public static int Main()
 {
     int a = -1;
     IndexerClass b = new IndexerClass();
     b[3] = 256;
     b[5] = 1024;
     for (int i = 0; i <= 10; i++)
         a += b[i];
     if (a == 1279)
         return 100;
     else
         return 1;
 }
Example #2
0
 public static int Main()
 {
     int a = -1;
     IndexerClass b = new IndexerClass();
     // call the indexer to initialize the elements #3 and #5:
     b[3] = 256;
     b[5] = 1024;
     for (int i = 0; i <= 10; i++)
         a += b[i];
     if (a == 1279)
         return 100;
     else
         return 1;
 }
Example #3
0
        public static int Main()
        {
            int          a = -1;
            IndexerClass b = new IndexerClass();

            b[3] = 256;
            b[5] = 1024;
            for (int i = 0; i <= 10; i++)
            {
                a += b[i];
            }
            if (a == 1279)
            {
                return(100);
            }
            else
            {
                return(1);
            }
        }
Example #4
0
        public static int Main()
        {
            int          a = -1;
            IndexerClass b = new IndexerClass();

            // call the indexer to initialize the elements #3 and #5:
            b[3] = 256;
            b[5] = 1024;
            for (int i = 0; i <= 10; i++)
            {
                a += b[i];
            }
            if (a == 1279)
            {
                return(100);
            }
            else
            {
                return(1);
            }
        }