<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: marshalling code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 18 May 2008 05:39:00 GMT</pubDate>
    <description>DZone Snippets: marshalling code</description>
    <item>
      <title>Protect string content by marshalling</title>
      <link>http://snippets.dzone.com/posts/show/3884</link>
      <description>&lt;code&gt;&lt;br /&gt;IntPtr bstr = Marshal.SecureStringToBSTR(password);&lt;br /&gt;    &lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;    // ...&lt;br /&gt;    // use the bstr&lt;br /&gt;    // ...&lt;br /&gt;}&lt;br /&gt;finally&lt;br /&gt;{&lt;br /&gt;    Marshal.ZeroFreeBSTR(bstr);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 24 Apr 2007 22:35:35 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3884</guid>
      <author>mstampar (Miroslav Stampar)</author>
    </item>
  </channel>
</rss>
