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

            matrix.SetupMatrix(4, 4);

            matrix.Print();
        }