我有一个案文箱,我作为投入输入。
"Two; abc@kk.com;"
string[] result = txt_to.Text.Split( ; );
so what happens here is the result takes three strings. 1. two 2. abc@kk.com 3. "" (empty space) since there is a ; after the email it considers that as a string how can I discard the 3rd string that it takes. It happens when I enter the email and a semicolon and press the space bar it throws a error. If it is just space after the semicolon the split should discard it how to do that