有没有在C#中的本机正确的案例字符串函数? [英] Is there a native Proper Case string function in C#?
本文介绍了有没有在C#中的本机正确的案例字符串函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正要写我自己的C#扩展为一个字符串,以适当的大小写转换(即大写每个单词的第一个字母),那么我想知道有没有一个本地的C#功能来做到这一点......是吗?
I was about to write my own C# extension to convert a string to Proper Case (i.e. capitalize the first letter of every word), then I wondered if there's not a native C# function to do just that... is there?
推荐答案
的还有就是大写单词的第一个字母的,但你应该看到备注部分,因为它确实有一些限制,这可能使不适合您的需要的功能。
There is a function that capitalises the first letters of words, though you should see the remarks section as it does have some limitations which may make it unsuitable for your needs.
这篇关于有没有在C#中的本机正确的案例字符串函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文