Beispiel #1
0
 public static MatrixGenerator GetInstance()
 {
     if (instance == null)
     {
         instance = new MatrixGenerator();
     }
     return(instance);
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            MatrixGenerator matrix = MatrixGenerator.GetInstance();

            matrix.SetupMatrix(4, 4);

            matrix.Print();
        }