cannot convert from 'string' to 'char[]' for split

前端 未结 7 1851

I am using the following code to split a string:

string sss=\"125asdasdlkmlkdfknkldj125kdjfngdkjfndkg125ksndkfjdks125\";

List s = new List<         


        
7条回答
  •  遥遥无期
    2020-12-11 01:31

    this error/issue is not present in .NET Core 3.1 but does appear in .NET 4.7.2. This error came up while trying to use C# fiddle (https://dotnetfiddle.net/) to test something and was not getting the same message in my project. The issue was that my project is using .NET Core compiler and the fiddle was not. Once that was updated in the fiddle, the error cleared.

提交回复
热议问题