<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Conversion between System.String and char *</title><link>http://blogs.msdn.com/b/junfeng/archive/2008/08/11/conversion-between-system-string-and-char.aspx</link><description>We can convert a char * to System.String with System.String’s constructor 
 string str = new string((char*)p); 
 And for the reverse: 
 fixed(char *p = str){} 
 Why do we care about conversion between System.String and char *? 
 From this article</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Conversion between System.String and char *</title><link>http://blogs.msdn.com/b/junfeng/archive/2008/08/11/conversion-between-system-string-and-char.aspx#8998462</link><pubDate>Mon, 13 Oct 2008 22:01:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8998462</guid><dc:creator>Artem Razin</dc:creator><description>&lt;p&gt;Sorry for the bothering you. It seems that you're guru of SxS, and I have one interesting question regarding SxS. May I write you a question somehow?... How can I contact you?&lt;/p&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8998462" width="1" height="1"&gt;</description></item><item><title>re: Conversion between System.String and char *</title><link>http://blogs.msdn.com/b/junfeng/archive/2008/08/11/conversion-between-system-string-and-char.aspx#8853352</link><pubDate>Tue, 12 Aug 2008 23:14:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8853352</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;That is a managed char*, so it's unicode. What would that be useful for?&lt;/p&gt;
&lt;p&gt;Hardly a surprise that this would work ...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8853352" width="1" height="1"&gt;</description></item><item><title>Conversion between System.String and char * | Easycoded</title><link>http://blogs.msdn.com/b/junfeng/archive/2008/08/11/conversion-between-system-string-and-char.aspx#8848266</link><pubDate>Mon, 11 Aug 2008 18:22:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8848266</guid><dc:creator>Conversion between System.String and char * | Easycoded</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.easycoded.com/conversion-between-systemstring-and-char"&gt;http://www.easycoded.com/conversion-between-systemstring-and-char&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8848266" width="1" height="1"&gt;</description></item></channel></rss>