CSharp_Indexers.A.this C# (CSharp) Method

this() public method

public this ( int index ) : int
index int
return int
        public int this[int index]
        {
            get { return array[index]; }

            set
            {
                if (index >= array.Length)
                {
                    Array.Resize<int>(ref array, index + 1);
                    Console.WriteLine("Array Resized: {0}", array.Length);
                }

                array[index] = value;
            }
        }