<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - rengber</title>
<link>http://snipplr.com/users/rengber/language/c-sharp</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 14 Oct 2008 04:24:48 GMT</pubDate>
<item>
<title>(C#) Manually Send an SMTP Message from a Telnet Session.</title>
<link>http://snipplr.com/view/7958/manually-send-an-smtp-message-from-a-telnet-session/</link>
<description><![CDATA[ <p>Mail might not send from user different from current domain or to user in ouside domain.   
Data section terminated by CRLF.CRLF</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 00:19:41 GMT</pubDate>
<guid>http://snipplr.com/view/7958/manually-send-an-smtp-message-from-a-telnet-session/</guid>
</item>
<item>
<title>(C#) Using a BackgroundWorker Object from a Winform</title>
<link>http://snipplr.com/view/7541/using-a-backgroundworker-object-from-a-winform/</link>
<description><![CDATA[ <p>I didn't like the way ReportProgress events backed up, so I ran a Timer object to update the progress meter instead.</p> ]]></description>
<pubDate>Sun, 27 Jul 2008 23:18:51 GMT</pubDate>
<guid>http://snipplr.com/view/7541/using-a-backgroundworker-object-from-a-winform/</guid>
</item>
<item>
<title>(C#) Base64 Encode or Decode a File</title>
<link>http://snipplr.com/view/6034/base64-encode-or-decode-a-file/</link>
<description><![CDATA[ <p>Useful for sending files past filters via email.</p> ]]></description>
<pubDate>Mon, 28 Apr 2008 19:45:24 GMT</pubDate>
<guid>http://snipplr.com/view/6034/base64-encode-or-decode-a-file/</guid>
</item>
<item>
<title>(C#) ASP.Net Page to Return an Image from an SQL Blob Query</title>
<link>http://snipplr.com/view/5549/aspnet-page-to-return-an-image-from-an-sql-blob-query/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 24 Mar 2008 21:36:37 GMT</pubDate>
<guid>http://snipplr.com/view/5549/aspnet-page-to-return-an-image-from-an-sql-blob-query/</guid>
</item>
<item>
<title>(C#) Adding Eventhandlers to DataGrid Rows</title>
<link>http://snipplr.com/view/4887/adding-eventhandlers-to-datagrid-rows/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 03 Feb 2008 19:17:48 GMT</pubDate>
<guid>http://snipplr.com/view/4887/adding-eventhandlers-to-datagrid-rows/</guid>
</item>
<item>
<title>(C#) Filter Expression for a DataTable</title>
<link>http://snipplr.com/view/4868/filter-expression-for-a-datatable/</link>
<description><![CDATA[ <p>Pretty intuitive, might be an easier/simpler way.</p> ]]></description>
<pubDate>Thu, 31 Jan 2008 20:01:11 GMT</pubDate>
<guid>http://snipplr.com/view/4868/filter-expression-for-a-datatable/</guid>
</item>
<item>
<title>(C#) Adding another item to a databound drop-down list.</title>
<link>http://snipplr.com/view/4852/adding-another-item-to-a-databound-dropdown-list/</link>
<description><![CDATA[ <p>Stupidly simple, but I keep forgetting it.</p> ]]></description>
<pubDate>Wed, 30 Jan 2008 22:13:55 GMT</pubDate>
<guid>http://snipplr.com/view/4852/adding-another-item-to-a-databound-dropdown-list/</guid>
</item>
<item>
<title>(C#) ASP.Net Code to Get an Active Directory User Name from the Integrated Authentication Principal Name</title>
<link>http://snipplr.com/view/4811/aspnet-code-to-get-an-active-directory-user-name-from-the-integrated-authentication-principal-name/</link>
<description><![CDATA[ <p>Typically won't work if the ASP.Net service identity (in the machine.config ProcessModel section) is a local account.</p> ]]></description>
<pubDate>Mon, 28 Jan 2008 17:04:03 GMT</pubDate>
<guid>http://snipplr.com/view/4811/aspnet-code-to-get-an-active-directory-user-name-from-the-integrated-authentication-principal-name/</guid>
</item>
<item>
<title>(C#) Declarative Code for ASP.Net Repeater to Access CodeBehind Method.</title>
<link>http://snipplr.com/view/4734/declarative-code-for-aspnet-repeater-to-access-codebehind-method/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 22 Jan 2008 19:20:29 GMT</pubDate>
<guid>http://snipplr.com/view/4734/declarative-code-for-aspnet-repeater-to-access-codebehind-method/</guid>
</item>
<item>
<title>(C#) Getting X509 Certificates in and out of the Key Store</title>
<link>http://snipplr.com/view/4046/getting-x509-certificates-in-and-out-of-the-key-store/</link>
<description><![CDATA[ <p>Generate the Cert: 
makecert -sy 3 -n "cn=FooCorp" -ss my -sr LocalMachine

Grant Permissions to the Cert: 
winHttpCertCfg -g -c LOCAL_MACHINE\MY -s "FooCorp" -a "domain\YourMomma"</p> ]]></description>
<pubDate>Mon, 29 Oct 2007 16:57:45 GMT</pubDate>
<guid>http://snipplr.com/view/4046/getting-x509-certificates-in-and-out-of-the-key-store/</guid>
</item>
<item>
<title>(C#) Building a Hashtable of File Contents from a Zip File Containing Multiple Files and Folders</title>
<link>http://snipplr.com/view/3484/building-a-hashtable-of-file-contents-from-a-zip-file-containing-multiple-files-and-folders/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 07 Aug 2007 21:28:12 GMT</pubDate>
<guid>http://snipplr.com/view/3484/building-a-hashtable-of-file-contents-from-a-zip-file-containing-multiple-files-and-folders/</guid>
</item>
<item>
<title>(C#) Serializing and Deserializing a Class Created with XSD.Exe Using XML Strings</title>
<link>http://snipplr.com/view/2660/serializing-and-deserializing-a-class-created-with-xsdexe-using-xml-strings/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 16 May 2007 14:33:21 GMT</pubDate>
<guid>http://snipplr.com/view/2660/serializing-and-deserializing-a-class-created-with-xsdexe-using-xml-strings/</guid>
</item>
<item>
<title>(C#) Get XML String Out of an Instance of a Class Generated from an XSD File by XSD.exe</title>
<link>http://snipplr.com/view/2640/get-xml-string-out-of-an-instance-of-a-class-generated-from-an-xsd-file-by-xsdexe/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 15 May 2007 20:29:41 GMT</pubDate>
<guid>http://snipplr.com/view/2640/get-xml-string-out-of-an-instance-of-a-class-generated-from-an-xsd-file-by-xsdexe/</guid>
</item>
<item>
<title>(C#) Adding Parameters to a Command Object Using Relection Over Matching Class Properties</title>
<link>http://snipplr.com/view/2619/adding-parameters-to-a-command-object-using-relection-over-matching-class-properties/</link>
<description><![CDATA[ <p>You could eliminate the ListDictionary if you created a simple method to map C# types to DbTypes.  Although this method also lets you skip over some object properties my using the ListDictionary to contain a subset of properties.  It could also be used to map properties to param names if they needed to differ.</p> ]]></description>
<pubDate>Wed, 09 May 2007 20:04:34 GMT</pubDate>
<guid>http://snipplr.com/view/2619/adding-parameters-to-a-command-object-using-relection-over-matching-class-properties/</guid>
</item>
<item>
<title>(C#) Scan Assemblies Using Reflection to Locate Performance Counter Installers</title>
<link>http://snipplr.com/view/2618/scan-assemblies-using-reflection-to-locate-performance-counter-installers/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 May 2007 15:43:53 GMT</pubDate>
<guid>http://snipplr.com/view/2618/scan-assemblies-using-reflection-to-locate-performance-counter-installers/</guid>
</item>
<item>
<title>(C#) NUnit Forms Code to Dismiss a Modal Form (not a messagebox).</title>
<link>http://snipplr.com/view/2461/nunit-forms-code-to-dismiss-a-modal-form-not-a-messagebox/</link>
<description><![CDATA[ <p>The trick to this is that you must find the class name of the form.  The caption won't cut it for non-messagebox modals.</p> ]]></description>
<pubDate>Thu, 12 Apr 2007 19:28:39 GMT</pubDate>
<guid>http://snipplr.com/view/2461/nunit-forms-code-to-dismiss-a-modal-form-not-a-messagebox/</guid>
</item>
<item>
<title>(C#) Using NUnitForms</title>
<link>http://snipplr.com/view/2446/using-nunitforms/</link>
<description><![CDATA[ <p>Note:  The override of UseHidden controls whether or not NUnit will create forms in a hidden desktop/winstation.  It needs to be set before the constructor is called in order to be effective.</p> ]]></description>
<pubDate>Tue, 10 Apr 2007 16:32:24 GMT</pubDate>
<guid>http://snipplr.com/view/2446/using-nunitforms/</guid>
</item>
<item>
<title>(C#) Using a Flag Enumeration with Bitwise Operations</title>
<link>http://snipplr.com/view/2402/using-a-flag-enumeration-with-bitwise-operations/</link>
<description><![CDATA[ <p>Note the use of the Bitwise Complement Operator ( ~ ) to AND the negative of the bit you want to set.</p> ]]></description>
<pubDate>Tue, 27 Mar 2007 20:24:23 GMT</pubDate>
<guid>http://snipplr.com/view/2402/using-a-flag-enumeration-with-bitwise-operations/</guid>
</item>
<item>
<title>(C#) Converting Integers To and From Binary</title>
<link>http://snipplr.com/view/2401/converting-integers-to-and-from-binary/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 27 Mar 2007 19:21:33 GMT</pubDate>
<guid>http://snipplr.com/view/2401/converting-integers-to-and-from-binary/</guid>
</item>
<item>
<title>(C#) Bitwise operations on Integers</title>
<link>http://snipplr.com/view/2400/bitwise-operations-on-integers/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 27 Mar 2007 19:18:38 GMT</pubDate>
<guid>http://snipplr.com/view/2400/bitwise-operations-on-integers/</guid>
</item>
</channel>
</rss>