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

后端 未结 10 1716
我在风中等你
我在风中等你 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条回答
  •  猫巷女王i
    2020-12-17 00:47

    Personally I'd cheat and have a peek at string.Split using reflector... InternalSplitOmitEmptyEntries looks useful ;-)

提交回复
热议问题