Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Limits are constants, then:
const int Size1 = 10;
const int Size2 = 20;
int[,] matrix;
public int[,] Matrix
{
get => matrix;
set
{
if (value.GetLength(0) > Size1 || value.GetLength(1) > Size2)
{
Console.WriteLine("Матрица вышла за пределы 10х20");
}
else matrix = value;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question