コード例 #1
0
        static void Main(string[] args)
        {
            // Declare an instance of the SampleCollection type.
            SampleCollection <string> stringCollection = new SampleCollection <string>();

            // Use [] notation on the type.
            stringCollection[0] = "Hello, World";
        }
コード例 #2
0
        static void Main(string[] args)
        {
            // Declare an instance of the SampleCollection type.
            SampleCollection <string> stringCollection = new SampleCollection <string>();

            // Use [] notation on the type.
            string firstElement = stringCollection[0];
        }