I'm splitting a user input string at the math operators, I want to know if there's some way to remember exactly which operator acted as the delimiter within the code?
private void button1_Click(object sender, EventArgs e)
{
string userInput = textBox1.Text;
char[] operators = { '+', '-', '*', '/' };
//splits the entered string into substrings after encountering operator characters
string[] operands = userInput.Split(operators);
}