C# Extension Method - String Split that also accepts an Escape Character

后端 未结 10 1707
我在风中等你
我在风中等你 2020-12-17 00:19

I\'d like to write an extension method for the .NET String class. I\'d like it to be a special varation on the Split method - one that takes an escape character to prevent s

10条回答
  •  甜味超标
    2020-12-17 00:45

    This will need to be cleaned up a bit, but this is essentially it....

    List output = new List();
    for(int i=0; i

提交回复
热议问题