1
3
这里已经有很多答案了,但我想添加一个新的答案,即使用原始C#代码来处理字符串,避免一些内存分配并减少处理时间。
当我们使用ToArray、Split、ToLower、Regex等方法时,我们会在内存中创建许多对象,这可以通过一些逻辑来避免。 基准测试
|
2
2
我建议使用 正则表达式 为了匹配我们应该变成小写(第一个单词)或标题大小写(所有其他单词)的所有单词:
评论:
|
3
1
编辑
后果
|
4
1
我为我的一项大学作业做了以下代码,效果非常好。这个
|
Robert King · Unity C#语法问题-转换位置 1 年前 |
JBryanB · 如何从基本抽象类访问类属性 1 年前 |
law · 检查答案按钮的输入字符串格式不正确 1 年前 |
i_sniff_ket · 在unity之外使用unity类 2 年前 |