如何使用c#删除单引号 [英] How to remove Single quote using c#
本文介绍了如何使用c#删除单引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友
i我有String的价值
String Test = '72;
现在我要删除单引号
输出应该是Test = 72
请建议我
hi Friends
i am having String its value
String Test = '72;
now i want remove the single quote
the out put should be Test = 72
Please suggest me
推荐答案
尝试使用
Try to use
string a=Test.replace("'","");
这篇关于如何使用c#删除单引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文