[C#]怎么办.包含"0"和"1"表示不超过1,如果 [英] [C#] How to do .Contains with "0" and "1" without more than 1 if
本文介绍了[C#]怎么办.包含"0"和"1"表示不超过1,如果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在研究文本窗口"游戏,但我不想让玩家在其中输入数字.
I am working on a Text Window game which I don't want the player to have numbers in there name.
供您参考
我尝试过
if(inputname.Contains("0","1" ETC
if (inputname.Contains("0", "1" ETC
和
if(inputname.Continas("0" +"1" ETC
if (inputname.Continas("0" + "1" ETC
请尽快提供帮助
我喜欢编码.这是签名是100%原始的. :)
I love coding. This is signature is 100% Original. :)
推荐答案
你好,
查看以下内容
> http://stackoverflow.com/questions/11815835/regex-az-characters-only
这篇关于[C#]怎么办.包含"0"和"1"表示不超过1,如果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文