Terraria.DataStructures.TileObjectPreviewData.this C# (CSharp) Method

this() public method

public this ( int x, int y ) : int
x int
y int
return int
        public int this[int x, int y]
        {
            get
            {
                if (x < 0 || y < 0 || (x >= (int)_size.X || y >= (int)_size.Y))
                    throw new IndexOutOfRangeException();
                return _data[x, y];
            }
            set
            {
                if (x < 0 || y < 0 || (x >= (int)_size.X || y >= (int)_size.Y))
                    throw new IndexOutOfRangeException();
                _data[x, y] = value;
            }
        }