Thursday, February 16, 2017

StringSplitOptions.RemoveEmptyEntries in C# does what you think it does.

var x = y.Split(new[] {",", " ", "\n", Environment.NewLine},
      StringSplitOptions.RemoveEmptyEntries).ToArray<object>();

No comments:

Post a Comment