A Wildcats Team can store scores in a rectangular array. Build on the 1D field lesson: the class entry still describes a field type, but one comma now identifies two dimensions.
This complete class fragment declares the field without creating an array. Each Team instance can later receive its own array reference.
public class Team
{
public int[,] RoundGoals;
}The field is public, its name is RoundGoals, and its type is int[,]. Translate those three parts into +RoundGoals : int[,]. The comma belongs to the rectangular array type; it is not a separator between two fields.
Team.+RoundGoals : int[,]. Compare the brackets with the 1D int[] type: this entry must retain the comma.For the matching instance view, use the lesson below.