- Sep 23, 2003
- 11,448
- 262
- 126
I'm headed back to my C# program from a while back at work. I'll probably have newb questions for a while... here's the first!
See the following:
Why do I need to do new string[] {} around "Hello" to get it to return a string array to var a?
See the following:
Code:
string hello = "HelloworldHellofriendsHelloPeople";
var a = hello.Split(new string[] { "Hello"}, StringSplitOptions.RemoveEmptyEntries);
Why do I need to do new string[] {} around "Hello" to get it to return a string array to var a?
Last edited: