Answers for "split c# remove split"

C#
34

c sharp split string

// To split a string use 'Split()', you can choose where to split
string text = "Hello World!"
string[] textSplit = text.Split(" ");
// Output:
// ["Hello", "World!"]
Posted by: Guest on February-22-2020
0

c# string split by length

static IEnumerable<string> Split(string str, int chunkSize)
{
    return Enumerable.Range(0, str.Length / chunkSize)
        .Select(i => str.Substring(i * chunkSize, chunkSize));
}
Posted by: Guest on November-24-2021
-1

c# string split with string

string data = "THExxQUICKxxBROWNxxFOX";

return data.Split(new string[] { "xx" }, StringSplitOptions.None);
Posted by: Guest on October-12-2021

C# Answers by Framework

Browse Popular Code Answers by Language