Since I like to Split() strings, I usually use
new char[] { ';' }
or something like that for a parameter for Split().
Is there any shortcut for creating a character array with one element at compile time? Not that I mind typing, but…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Especially for multiple elements, the following shortcut is nice:
You can use this with multiple chars: