Skip to content

Instantly share code, notes, and snippets.

@WilliamBundy
Created September 14, 2016 10:37
Show Gist options
  • Save WilliamBundy/ef438c2239f2f0d76852ed0e812ff3c0 to your computer and use it in GitHub Desktop.
Save WilliamBundy/ef438c2239f2f0d76852ed0e812ff3c0 to your computer and use it in GitHub Desktop.
// 1. use List.Add, hope that .ToArray() works
List<string> temp = new List<string>();
temp.Add(desired_username_tb.Text);
temp.Add(new_password_tb.Text);
temp.Add(Email_tb.Text);
DB.login_DB.Add(temp.ToArray());
// 2. Use an array of strings
string[] temp = new string[3];
temp[0] = (desired_username_tb.Text);
temp[1] = (new_password_tb.Text);
temp[2] = (Email_tb.Text);
DB.login_db.Add(temp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment