<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 03:07:35 +0000</lastBuildDate>
    <item>
      <title>(VB.NET) Serialize an object and write it to the disk - chavcho</title>
      <link>https://snipplr.com/view/12960/serialize-an-object-and-write-it-to-the-disk</link>
      <description>&lt;p&gt;Serializes any &lt;serializable/&gt; object and writes it to the specified location on the disk.&#13;
&#13;
Example:&#13;
&#13;
&#13;
Dim obj As DataTable&#13;
'save obj to disk&#13;
SerializeToFile(filepath, obj)&#13;
'to read it back, use DirectCast&#13;
Dim obj2 As DataTable = DirectCast(My.Computer.FileSystem.ReadAllBytes(filepath), DataTable)&lt;/p&gt;</description>
      <pubDate>Tue, 10 Mar 2009 10:30:05 UTC</pubDate>
      <guid>https://snipplr.com/view/12960/serialize-an-object-and-write-it-to-the-disk</guid>
    </item>
    <item>
      <title>(VB.NET) Extract an Image Embedded as a Resource - chavcho</title>
      <link>https://snipplr.com/view/12959/extract-an-image-embedded-as-a-resource</link>
      <description>&lt;p&gt;Use this to extract an image embedded as a resource in your project. Call the function supplying the full path to the resource, for example:&#13;
&#13;
Dim myImage as Bitmap = EmbeddedIcon("MyApplication1.myImage.png")&#13;
&#13;
Where "MyApplication1" is the root namespace for the project.&lt;/p&gt;</description>
      <pubDate>Tue, 10 Mar 2009 10:17:32 UTC</pubDate>
      <guid>https://snipplr.com/view/12959/extract-an-image-embedded-as-a-resource</guid>
    </item>
    <item>
      <title>(VB.NET) Extract an Icon Embedded as a Resource - chavcho</title>
      <link>https://snipplr.com/view/12958/extract-an-icon-embedded-as-a-resource</link>
      <description>&lt;p&gt;Use this to extract an icon embedded as a resource in your project. Call the function supplying the full path to the resource, for example:&#13;
&#13;
Dim myIcon as Icon = EmbeddedIcon("MyApplication1.myicon.ico")&#13;
&#13;
Where "MyApplication1" is the root namespace for the project.&lt;/p&gt;</description>
      <pubDate>Tue, 10 Mar 2009 10:14:38 UTC</pubDate>
      <guid>https://snipplr.com/view/12958/extract-an-icon-embedded-as-a-resource</guid>
    </item>
  </channel>
</rss>
