I am trying to print out a value from my array but the System.IndexOutOfRangeException keeps coming up! I'm not too sure whats wrong!
Code For My button:
private void Button_Click(object sender, RoutedEventArgs e)
{
Customers.CustomersArray[0, 6] = "12";
MessageBox.Show(Customers.CustomersArray[0, 6]);
}
Code From the class:
class Customers
{
public static string[,] CustomersArray = new string[10, 6];
}