如何检查字符串中是否存在字符 [英] How to check whether a character is present in the string or not
本文介绍了如何检查字符串中是否存在字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设字符串是 " + 123 QUOT;或"-345"
Suppose string is "+123" or "-345"
需要使用C#检查+是否存在
need to check + is present or not using C#
推荐答案
假设字符串是 " + 123 QUOT;或"-345"
Suppose string is "+123" or "-345"
需要使用C#检查+是否存在
need to check + is present or not using C#
https://www.dotnetperls.com/indexof
这篇关于如何检查字符串中是否存在字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文