想从一些字符串中删除一些标记 [英] want to remove some marks form some string
本文介绍了想从一些字符串中删除一些标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下代码
string n = dateTimePicker1.Value.ToString(yyyy-MM-dd); < br $> b $ b
给我以下输出-------------- 2014-07-11
现在我想从这个字符串中删除双反转的逗号我怎么能这样做... 。
i have following code
string n = dateTimePicker1.Value.ToString("yyyy-MM-dd");
which give me following output--------------"2014-07-11"
now i want to remove double inverted commams from this string how could i do this....
推荐答案
在你成为太多笑话的屁股之前,我会让你摆脱痛苦。
双引号不是你的字符串的一部分。
这就是它在Locals或Output窗口中显示的方式,或者当你将鼠标悬停在n
在调试模式下。
将字符串粘贴到Label或TextBox中以证明我的观点 - 将会有没有双引号
I'll put you out of your misery before you become the butt of too many jokes.
The double-quotes are not part of your string.
That's just the way it is being displayed in the Locals or Output windows, or when you hover overn
in debug mode.
Stick the string into a Label or TextBox to prove my point - there will be no double-quotes
这篇关于想从一些字符串中删除一些标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文