紧凑框架 2.0 的环境.NewLine 等效项
在 .NET Compact Framework 2.0 SP2 中将换行符插入字符串的最佳实践是什么?
What is the best practice for inserting a newline character into a string in the .NET Compact Framework 2.0 SP2?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Compact Framework 不支持Environment.NewLine 吗?啊好吧。你可以只使用
"\r\n"
- 如果你知道你在紧凑的框架上,它不像你在 Mono 上运行,默认的换行符可能会有所不同:)您始终可以创建自己的字符串属性:
Does the Compact Framework not support
Environment.NewLine
? Ah well. You can just use"\r\n"
- if you know you're on the compact framework, it's not like you're running on Mono where the default new line may be different :)You could always create your own string property: