Beruflich Dokumente
Kultur Dokumente
Examples
decimal[] totals = new decimal[4]
{14.95m, 12.95m, 11.95m, 9.95m};
decimal[] totals = {14.95m, 12.95m, 11.95m, 9.95m};
string[] names = {"Ted Lewis", "Sue Jones", "Ray Thomas"};
Description
You use the GetLength method to get the number of rows or
columns in a rectangular array. To get the number of rows,
specify 0 for the dimensionIndex argument. To get the number of
columns, specify 1 for this argument.
numbersString += "\n";
}
MessageBox.Show(numbersString, "Numbers Test");
productsString += "\n";
}
MessageBox.Show(productsString, "Products Test");
titlesString += "\n";
}
MessageBox.Show(titlesString, "Jagged Titles Test");