Implement the types using classes. Represent the types using sequences of same-type elements (List in C#).

so far i have done this but i think this is incorrect.
Код: Выделить всё
public class Matrix
{
private List matrix;
private int size;
public Matrix(int b1, int b2, int n)
{
if (b1 < 0 || b2 > n - 1 || b1 + b2 != n) throw new Exception("Invalid inputs!");
size = n;
}
}
Источник: https://stackoverflow.com/questions/781 ... -list-in-c