c# - VB.NET Strings.Chr 到 C#

标签 c# vb.net

如何转换:

strMenu.Append("        <ul>" + Strings.Chr(13));

到 C#?

最佳答案

这些是 C# 的等价物:

strMenu.Append("        <ul>\r");

strMenu.Append("        <ul>\u000d");

strMenu.Append("        <ul>" + (char)13);

关于c# - VB.NET Strings.Chr 到 C#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4090617/

相关文章:

c# - C# 中 itextsharp 中的文本格式设置

C# ExecuteScalar() null COUNT 与 SELECT

c# - 如何在上下文菜单条中设置组合框的默认项目?

c# - 监控本地计算机上打开的 .exe 程序的最佳方法

c# - INotifyPropertyChanged 未触发 PropertyChanged

c# - 为什么等待 ManualResetEvent 的线程即使在调用 Close() 时也会继续等待?

vb.net - "Cannot open a database created with a previous version of your application"显示 VB.NET 程序尝试使用 OleDBConnection 打开 MDB 文件时

HtmlAgilityPack 基本如何获取标题和链接?

.net - 属性 setter 中 Interlocked.Exchange 的简写

c# - 实现多线程后与数据库的连接丢失