2011-03-04 10 views

उत्तर

36

आप उद्धरण के लिए सही एस्केप अनुक्रम उपयोग करने की आवश्यकता प्रतीक, आप बच sequencies here बारे में अधिक जानकारी पा सकते हैं।

String stringWithSingleQuotes= "src='http://...';"; 
String withDoubleQuotes = stringWithSingleQuotes.Replace("'","\""); 
5
var abc = "hello the're"; 
abc = abc.Replace("'","\""); 
2
string str; 
str=strtext.Replace('"','\''); 
+0

हम अपने कोड के साथ साथ 'स्थान ले रही हैं? " मुझे लगता है कि यह विपरीत होना चाहिए। – Kurkula

संबंधित मुद्दे