namespace oo_assign_2_edepot_ { public partial class driver { int driver_size = 1; public string[] d_username = new string[driver_size] {"john"}; public string[] d_password = new string[driver_size] { "pass1" }; } }
driver.size not recognized variable size in arrays
choose one:
public partial class driver { int driver_size = 1; // set size public string[] d_username = new string[driver.size]; // set value public string[] d_password = new string[] { "pass1" }; }
Comments
Post a Comment