是否可以在C#代码文件中添加文字XML数据?我目前正在使用多行字符串文字,但你可以看到它变得混乱.有没有更好的方法呢?
string XML = @"<?xml version=""1.0"" encoding=""utf-8""?>
<customUI xmlns=""http://schemas.example.com/customui"">
<toolbar id=""save"">
</toolbar>
</customUI>";
Run Code Online (Sandbox Code Playgroud)