Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 395 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 395 Bytes

Optimised-2D-Array-in-C#

This script is a faster version of the standard 2 dimensional array

How to use:

Array2D<int> numbers = new Array2D<int>(2,2);

numbers[0,0] = 14;

var x = numbers[0,0]; // x = 14

Other functions:

Array2D<int> numbers = new Array2D<int>(2,2);

var width = numbers.Width;
var height = numbers.Height;
var countOfElements = numbers.Count;