<?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</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 13 Feb 2012 23:42:17 GMT</pubDate>
<item>
<title>(C#) Proxyless WCF Client Side</title>
<link>http://snipplr.com/view/62990/proxyless-wcf-client-side/</link>
<description><![CDATA[ <p>From page 70 or so of Juval Lowry's Programming WCF</p> ]]></description>
<pubDate>Thu, 02 Feb 2012 04:11:33 GMT</pubDate>
<guid>http://snipplr.com/view/62990/proxyless-wcf-client-side/</guid>
</item>
<item>
<title>(C#) Minimalist WCF Client-side Config File</title>
<link>http://snipplr.com/view/62966/minimalist-wcf-clientside-config-file/</link>
<description><![CDATA[ <p>Again, A-B-C.   All the Behaviour garbage that "Add Service Reference" inserts for the TCP binding is unnecessary, especially if the Operation Contract is only for simple value types.</p> ]]></description>
<pubDate>Wed, 01 Feb 2012 09:17:14 GMT</pubDate>
<guid>http://snipplr.com/view/62966/minimalist-wcf-clientside-config-file/</guid>
</item>
<item>
<title>(C#) Minimalist WCF Server-side Config File</title>
<link>http://snipplr.com/view/62963/minimalist-wcf-serverside-config-file/</link>
<description><![CDATA[ <p>ABC - Address Binding Contract
Note that the Service Name and Contract must match a real live type (case Sensitive)
Binding name is also case sensitive.</p> ]]></description>
<pubDate>Wed, 01 Feb 2012 07:45:34 GMT</pubDate>
<guid>http://snipplr.com/view/62963/minimalist-wcf-serverside-config-file/</guid>
</item>
<item>
<title>(C#) Simplest Possible Background Thread and Console App Lifetime Test</title>
<link>http://snipplr.com/view/61315/simplest-possible-background-thread-and-console-app-lifetime-test/</link>
<description><![CDATA[ <p>Saw some strange console app behavior while hosting quartz.net had to doublecheck that a console app will not exit while background threads are running.  In the example below, once the main method ends, the app stays alive for 10 seconds while the background thread finishes.</p> ]]></description>
<pubDate>Wed, 30 Nov 2011 06:18:50 GMT</pubDate>
<guid>http://snipplr.com/view/61315/simplest-possible-background-thread-and-console-app-lifetime-test/</guid>
</item>
<item>
<title>(C#) Command Line to Add Certificates to Certificate Stores (Including the Intermediate CA Store)</title>
<link>http://snipplr.com/view/35174/command-line-to-add-certificates-to-certificate-stores-including-the-intermediate-ca-store/</link>
<description><![CDATA[ <p>Certmgr is in the Windows 7 SDK</p> ]]></description>
<pubDate>Mon, 24 May 2010 16:44:20 GMT</pubDate>
<guid>http://snipplr.com/view/35174/command-line-to-add-certificates-to-certificate-stores-including-the-intermediate-ca-store/</guid>
</item>
<item>
<title>(Other) Command to Extract the Contents of an MSI File to a Folder</title>
<link>http://snipplr.com/view/27182/command-to-extract-the-contents-of-an-msi-file-to-a-folder/</link>
<description><![CDATA[ <p>note, MSIExec /? will launch a dialog box with switch documentation.</p> ]]></description>
<pubDate>Wed, 27 Jan 2010 12:21:41 GMT</pubDate>
<guid>http://snipplr.com/view/27182/command-to-extract-the-contents-of-an-msi-file-to-a-folder/</guid>
</item>
<item>
<title>(C#) Get the Namespace, Class Name, and Method Name of the Currently Executing Method Via Reflection</title>
<link>http://snipplr.com/view/26471/get-the-namespace-class-name-and-method-name-of-the-currently-executing-method-via-reflection/</link>
<description><![CDATA[ <p>GetFrame(1) to avoid the last method being this property accessor.  
Note that in a child class inherited member, the Class name will be the name of the type containing the implementation.</p> ]]></description>
<pubDate>Thu, 14 Jan 2010 15:09:24 GMT</pubDate>
<guid>http://snipplr.com/view/26471/get-the-namespace-class-name-and-method-name-of-the-currently-executing-method-via-reflection/</guid>
</item>
<item>
<title>(SQL) TSQL Convert DateTime</title>
<link>http://snipplr.com/view/19237/tsql-convert-datetime/</link>
<description><![CDATA[ <p>I am forever forgetting this.  Have to look up the 101 vs 103 in books online every time.   
Also forget which way around is US/NZ format.  :-)</p> ]]></description>
<pubDate>Thu, 03 Sep 2009 21:48:26 GMT</pubDate>
<guid>http://snipplr.com/view/19237/tsql-convert-datetime/</guid>
</item>
<item>
<title>(SQL) TSQL to Get the SQL Autonumber ID of the Row Just Inserted</title>
<link>http://snipplr.com/view/19084/tsql-to-get-the-sql-autonumber-id-of-the-row-just-inserted/</link>
<description><![CDATA[ <p>Dead simple, but often forgotten.</p> ]]></description>
<pubDate>Mon, 31 Aug 2009 22:48:15 GMT</pubDate>
<guid>http://snipplr.com/view/19084/tsql-to-get-the-sql-autonumber-id-of-the-row-just-inserted/</guid>
</item>
<item>
<title>(C#) Dump an Arbitrary Object to XML (Bypassing Default Serialization)</title>
<link>http://snipplr.com/view/18836/dump-an-arbitrary-object-to-xml-bypassing-default-serialization/</link>
<description><![CDATA[ <p>Useful in cases where the object author has specified their own serialization that doesn't work for you.</p> ]]></description>
<pubDate>Tue, 25 Aug 2009 17:52:51 GMT</pubDate>
<guid>http://snipplr.com/view/18836/dump-an-arbitrary-object-to-xml-bypassing-default-serialization/</guid>
</item>
<item>
<title>(C#) DataBinding an Arbitrary XML String to an ASP.Net GridViev</title>
<link>http://snipplr.com/view/18374/databinding-an-arbitrary-xml-string-to-an-aspnet-gridviev/</link>
<description><![CDATA[ <p>Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:</p> ]]></description>
<pubDate>Sun, 16 Aug 2009 18:45:04 GMT</pubDate>
<guid>http://snipplr.com/view/18374/databinding-an-arbitrary-xml-string-to-an-aspnet-gridviev/</guid>
</item>
<item>
<title>(SQL) SQL Server String Split Function</title>
<link>http://snipplr.com/view/17651/sql-server-string-split-function/</link>
<description><![CDATA[ <p>From StackOverflow.  I'm still not quite happy with my understanding of it, but it looks an order of magnitude more elegant than most I've found.</p> ]]></description>
<pubDate>Wed, 29 Jul 2009 23:37:26 GMT</pubDate>
<guid>http://snipplr.com/view/17651/sql-server-string-split-function/</guid>
</item>
<item>
<title>(SQL) TSQL Function and Check Constraint to Ensure that a Parent Value is Present in the Table</title>
<link>http://snipplr.com/view/17476/tsql-function-and-check-constraint-to-ensure-that-a-parent-value-is-present-in-the-table/</link>
<description><![CDATA[ <p>If a "InReplyToID" is provided, it must be a valid MessageId</p> ]]></description>
<pubDate>Sun, 26 Jul 2009 23:57:39 GMT</pubDate>
<guid>http://snipplr.com/view/17476/tsql-function-and-check-constraint-to-ensure-that-a-parent-value-is-present-in-the-table/</guid>
</item>
<item>
<title>(C#) Minimalist XSLT Transform Using Two Strings</title>
<link>http://snipplr.com/view/17050/minimalist-xslt-transform-using-two-strings/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 15 Jul 2009 21:24:03 GMT</pubDate>
<guid>http://snipplr.com/view/17050/minimalist-xslt-transform-using-two-strings/</guid>
</item>
<item>
<title>(C#) DataGridView DataBind an Array of Arbitrary Objects</title>
<link>http://snipplr.com/view/15786/datagridview-databind-an-array-of-arbitrary-objects/</link>
<description><![CDATA[ <p>Stupidly simple -- just one pitfall: class to be bound must have Get/Set methods for reflection to discover.   Which is annoying when it comes to client side classes auto generated from WSDL.</p> ]]></description>
<pubDate>Tue, 09 Jun 2009 18:50:51 GMT</pubDate>
<guid>http://snipplr.com/view/15786/datagridview-databind-an-array-of-arbitrary-objects/</guid>
</item>
<item>
<title>(C#) Using Moq to Return a Mock Object from a Factory</title>
<link>http://snipplr.com/view/15489/using-moq-to-return-a-mock-object-from-a-factory/</link>
<description><![CDATA[ <p>Note that the interface member is mockVar.Object mockVar won't cast to your interface.</p> ]]></description>
<pubDate>Wed, 03 Jun 2009 18:08:00 GMT</pubDate>
<guid>http://snipplr.com/view/15489/using-moq-to-return-a-mock-object-from-a-factory/</guid>
</item>
<item>
<title>(C#) Copy All Object Values from Another Instance of the Same Type Using Reflection</title>
<link>http://snipplr.com/view/14594/copy-all-object-values-from-another-instance-of-the-same-type-using-reflection/</link>
<description><![CDATA[ <p>Say that you have a collection of objects empty but for IDs.  
You want to do a foreach loop through those objects and lookup detail one at a time.  
Unfortunately, in the foreach, you can't replace the references, you can only copy the new detail into the object.   
This technique will populate your current reference from an object instance returned by a lookup.</p> ]]></description>
<pubDate>Thu, 30 Apr 2009 00:51:06 GMT</pubDate>
<guid>http://snipplr.com/view/14594/copy-all-object-values-from-another-instance-of-the-same-type-using-reflection/</guid>
</item>
<item>
<title>(C#) LINQ Extension Methods</title>
<link>http://snipplr.com/view/14217/linq-extension-methods/</link>
<description><![CDATA[ <p>LINQ Extension method called with delegate, anonymous delegate, and lambda delegate.

Note that this only returns a "default" in the sense that it does not throw an exception if no item in the source matches the selection criteria.  .First() does throw an exception in this case.</p> ]]></description>
<pubDate>Mon, 20 Apr 2009 19:34:00 GMT</pubDate>
<guid>http://snipplr.com/view/14217/linq-extension-methods/</guid>
</item>
<item>
<title>(C#) C# Call a Constructor Overload from the Default Constructor</title>
<link>http://snipplr.com/view/14049/c-call-a-constructor-overload-from-the-default-constructor/</link>
<description><![CDATA[ <p>This is stupidly simple, but I always forget it.</p> ]]></description>
<pubDate>Tue, 14 Apr 2009 23:53:32 GMT</pubDate>
<guid>http://snipplr.com/view/14049/c-call-a-constructor-overload-from-the-default-constructor/</guid>
</item>
<item>
<title>(SQL) TSQL Try Catch Error Handling</title>
<link>http://snipplr.com/view/12518/tsql-try-catch-error-handling/</link>
<description><![CDATA[ <p>This as it sits isn't an improvement on what happens by default.  It's only useful combined with a compensating transaction or sad path in the catch block, or in allowing a loop to continue.</p> ]]></description>
<pubDate>Mon, 23 Feb 2009 21:05:08 GMT</pubDate>
<guid>http://snipplr.com/view/12518/tsql-try-catch-error-handling/</guid>
</item>
</channel>
</rss>
