public static MatrixGenerator GetInstance() { if (instance == null) { instance = new MatrixGenerator(); } return(instance); }
static void Main(string[] args) { MatrixGenerator matrix = MatrixGenerator.GetInstance(); matrix.SetupMatrix(4, 4); matrix.Print(); }