字符串拆分基于char \

ano*_*use 2 c# c#-3.0 c#-2.0

此刻有点心灵冻结.我有以下语法: -

        string[] repname = Thread.CurrentPrincipal.Identity.ToString().Split('\');
Run Code Online (Sandbox Code Playgroud)

我在分裂字符上出错了.任何人都可以建议我如何使用\字符作为分隔符进行拆分?

干杯