<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>codemeit &#187; C#</title>
	<atom:link href="http://www.codemeit.com/tag/c/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codemeit.com</link>
	<description>programming, software &#38; problem solving</description>
	<lastBuildDate>Tue, 31 Aug 2010 08:22:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WCF POX, JSON and SOAP Coexist</title>
		<link>http://www.codemeit.com/wcf/wcf-restful-pox-json-and-soap-coexist.html</link>
		<comments>http://www.codemeit.com/wcf/wcf-restful-pox-json-and-soap-coexist.html#comments</comments>
		<pubDate>Sun, 15 Aug 2010 11:51:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WCF]]></category>
		<category><![CDATA[basicHttpBinding]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[POX]]></category>
		<category><![CDATA[RESTful]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[webHttpBinding]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=145</guid>
		<description><![CDATA[Sometimes, we want to make a service available in different protocols so that clients could have an option to choose one of their favorite methods to consume the web services. Here we are going to talk about how to make one WCF service available in POX(Plain Old XML as XML for short), JSON and SOAP [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/wcf/wcf-restful-pox-json-and-soap-coexist.html/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>A simplest/dumbest CSharp IDE</title>
		<link>http://www.codemeit.com/uncategorized/a-simplestdumbest-csharp-ide.html</link>
		<comments>http://www.codemeit.com/uncategorized/a-simplestdumbest-csharp-ide.html#comments</comments>
		<pubDate>Sun, 29 Nov 2009 06:40:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=558</guid>
		<description><![CDATA[The tiny WPF app (14k) has a textbox allows the input of the C# code, it compiles the code and execute the code after press F5 key. Here is what it looks like. No surprise. The main part which compiles the code at runtime is using CSharpCodeProvider from Microsoft.CSharp namespace. static CompilerResults Build&#40;string code, IEnumerable&#60;string&#62; [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/uncategorized/a-simplestdumbest-csharp-ide.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# Find All Derived Types From Assembly</title>
		<link>http://www.codemeit.com/code-collection/c-find-all-derived-types-from-assembly.html</link>
		<comments>http://www.codemeit.com/code-collection/c-find-all-derived-types-from-assembly.html#comments</comments>
		<pubDate>Sun, 15 Nov 2009 10:20:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Notes]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=523</guid>
		<description><![CDATA[I was always wondering if there is any method to find all derived types for the given type within an assembly. It would be handy to just pass either a class or an interface type and it will return me all its subs. I&#8217;ve come out with a method does that. It finds all the [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/code-collection/c-find-all-derived-types-from-assembly.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C# different ways of declaring a delegate</title>
		<link>http://www.codemeit.com/code-collection/c-different-ways-of-declaring-a-delegate.html</link>
		<comments>http://www.codemeit.com/code-collection/c-different-ways-of-declaring-a-delegate.html#comments</comments>
		<pubDate>Fri, 30 Oct 2009 06:57:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Notes]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=518</guid>
		<description><![CDATA[Lambda is quick and sweet. class DelegateTests &#160; &#160; &#123; &#160; &#160; &#160; &#160; public void Run&#40;&#41; &#160; &#160; &#160; &#160; &#123; &#160; &#160; &#160; &#160; &#160; &#160; // there are many ways to call method Test &#160; &#160; &#160; &#160; &#160; &#160; // 1, declare Func&#60;int, string&#62; delegate &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/code-collection/c-different-ways-of-declaring-a-delegate.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AssemblyResolve FileNotFoundException, Load Assembly from resource</title>
		<link>http://www.codemeit.com/code-collection/assemblyresolve-filenotfoundexception-load-assembly-from-resource.html</link>
		<comments>http://www.codemeit.com/code-collection/assemblyresolve-filenotfoundexception-load-assembly-from-resource.html#comments</comments>
		<pubDate>Fri, 18 Sep 2009 09:20:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Notes]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=495</guid>
		<description><![CDATA[I was struggling with this issue while I was trying to load the referenced assembly stream from the resource. It was caused by JIT (Just In Time compiler) tries to resolve the assembly before the CLR actually executes the AssemblyResolve assignment. You may have the code looks like this static void Main&#40;string&#91;&#93; args&#41; &#123; &#160; [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/code-collection/assemblyresolve-filenotfoundexception-load-assembly-from-resource.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# Wait for all threads completed with timeout</title>
		<link>http://www.codemeit.com/code-collection/c-wait-for-all-threads-completed-with-timeout.html</link>
		<comments>http://www.codemeit.com/code-collection/c-wait-for-all-threads-completed-with-timeout.html#comments</comments>
		<pubDate>Fri, 31 Jul 2009 08:14:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Notes]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=461</guid>
		<description><![CDATA[We only want to do something after all threads finish their work. The advantage is that all the threads can work simultaneously while each of them has no dependency to the other. Typically, I found it improves efficiency when making call to the remove webservice. For example, there is a web service operation called getProductById(int [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/code-collection/c-wait-for-all-threads-completed-with-timeout.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exchange Server 2007 WebService, Get Inbox Email Items &#8211; C#, SOAP Requests and Responses</title>
		<link>http://www.codemeit.com/webservices/exchange-server-2007-webservice-get-inbox-email-items-c-soap-requests-and-responses.html</link>
		<comments>http://www.codemeit.com/webservices/exchange-server-2007-webservice-get-inbox-email-items-c-soap-requests-and-responses.html#comments</comments>
		<pubDate>Mon, 25 May 2009 11:30:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WebServices]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[Web Service]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=404</guid>
		<description><![CDATA[I was evaluating the Exchange Server 2007 WebService API and trying to get a list of latest inbox items from EWS web service. It took me a while to figure out the request objects and the way to configure all the parameters. Here is the C# code doing this. The ExchangePlay.exws Proxy was generated within [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/webservices/exchange-server-2007-webservice-get-inbox-email-items-c-soap-requests-and-responses.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>C# StreamReader, StreamWriter default internal FileStream</title>
		<link>http://www.codemeit.com/code-collection/c-streamreader-streamwriter-default-internal-filestream.html</link>
		<comments>http://www.codemeit.com/code-collection/c-streamreader-streamwriter-default-internal-filestream.html#comments</comments>
		<pubDate>Mon, 06 Apr 2009 08:20:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Notes]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=387</guid>
		<description><![CDATA[I was wondering about the default FileStream object configuration within StreamWriter constructor, specifically the FileShare parameter of the FileStream. I&#8217;d like to find out if other processes are able to read the content at the same time while StreamWriter writes the content into the file. e.g using &#40;StreamWriter writer= new StreamWriter&#40;&#8220;test.txt&#8221;&#41;&#41; &#123; &#160; &#160; &#160;while&#40;true&#41;; [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/code-collection/c-streamreader-streamwriter-default-internal-filestream.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WCF Soap11 vs Soap11WSAddressing10 vs Soap11WSAddressingAugust2004 vs Soap12 vs Soap12WSAddressing10 vs Soap12WSAddressingAugust2004</title>
		<link>http://www.codemeit.com/wcf/soap11-vs-soap12-wsaddressing.html</link>
		<comments>http://www.codemeit.com/wcf/soap11-vs-soap12-wsaddressing.html#comments</comments>
		<pubDate>Sun, 22 Feb 2009 09:56:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WCF]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=315</guid>
		<description><![CDATA[I&#8217;ve done some quick test on WCF interoperability of the SOAP versions and WSAddressing. SOAP 1.1 vs SOAP 1.2 SOAP 1.2 is an extended version of SOAP 1.1, it does everything that SOAP 1.1 offers, SOAP 1.2 provides clear processing model and it is based on XML infoset, it has no dependency on the underlying [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/wcf/soap11-vs-soap12-wsaddressing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XSLT XML transformation vs Object mapping</title>
		<link>http://www.codemeit.com/xml/xslt-xml-transformation-vs-object-mapping.html</link>
		<comments>http://www.codemeit.com/xml/xslt-xml-transformation-vs-object-mapping.html#comments</comments>
		<pubDate>Mon, 09 Feb 2009 10:15:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XML]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=221</guid>
		<description><![CDATA[I&#8217;ve run some tests on transformation from one XML schema to the other so that I can compare the performance between XSLT and XmlSerializer with object mapping as well as the Pros and Cons. It appears XSLT transformed my source XML to target XML faster than the object mapping since XSLT doesn&#8217;t take the type [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/xml/xslt-xml-transformation-vs-object-mapping.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C# Polymorphism and Inheritance override the abstract or virtual</title>
		<link>http://www.codemeit.com/code-collection/c-polymorphism-and-inheritance.html</link>
		<comments>http://www.codemeit.com/code-collection/c-polymorphism-and-inheritance.html#comments</comments>
		<pubDate>Sat, 31 Jan 2009 15:38:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Notes]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Inheritance]]></category>
		<category><![CDATA[Polymorphism]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=171</guid>
		<description><![CDATA[Occasionally, programmers get to explain Polymorphism and Inheritance in .NET, I&#8217;ve compiled some typical use cases in case they need to be explained without IDE. We start with IDrawable interface which indicates all its implementations have a Draw method. Geometry abstract class which contains PrintType() that will be called by the specific implementation. Shape class [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/code-collection/c-polymorphism-and-inheritance.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# To Upper Case First Letter of a String</title>
		<link>http://www.codemeit.com/code-collection/c-to-upper-case-first-letter-of-a-string.html</link>
		<comments>http://www.codemeit.com/code-collection/c-to-upper-case-first-letter-of-a-string.html#comments</comments>
		<pubDate>Thu, 02 Oct 2008 07:58:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Notes]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=157</guid>
		<description><![CDATA[Utilize a simple extension method to capitalize the first letter of a string. public class Program &#160; &#160; &#123; &#160; &#160; &#160; &#160; static void Main&#40;string&#91;&#93; args&#41; &#160; &#160; &#160; &#160; &#123; &#160; &#160; &#160; &#160; &#160; &#160; string s = "toUpperFirstLetter"; &#160; &#160; &#160; &#160; &#160; &#160; // ToUpperFirstLetter is the extension method defined [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/code-collection/c-to-upper-case-first-letter-of-a-string.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Separator Delimited ToString for Array, List, Dictionary, Generic IEnumerable</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html</link>
		<comments>http://www.codemeit.com/linq/c-array-delimited-tostring.html#comments</comments>
		<pubDate>Sun, 21 Sep 2008 03:03:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[LINQ]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[C# Generic]]></category>
		<category><![CDATA[Extension Method]]></category>
		<category><![CDATA[Generic IEnumberable]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=81</guid>
		<description><![CDATA[Often programmers want to convert an array into one string with for example comma delimited. Traditionally, in C#, it can be achieved by int&#91;&#93; array = &#123;1,2,3&#125;; string delimited = string.Join&#40;",", array&#41;; Console.WriteLine&#40;delimited &#41; // output: &#34;1,2,3&#34; &#160; However, string.Join does not apply to any generic IEnumerable object. It would be so much easier if [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/linq/c-array-delimited-tostring.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>C# Pointer in unsafe context</title>
		<link>http://www.codemeit.com/code-collection/c-pointer-in-unsafe-context.html</link>
		<comments>http://www.codemeit.com/code-collection/c-pointer-in-unsafe-context.html#comments</comments>
		<pubDate>Sat, 20 Sep 2008 06:44:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Notes]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Pointer]]></category>
		<category><![CDATA[unsafe]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/code-collection/c-pointer-in-unsafe-context.html</guid>
		<description><![CDATA[Pointer usage in C# in unsafe context static unsafe void Main&#40;&#41; &#123; &#160; &#160; int i; &#160; &#160; int&#91;&#93; array = &#123; 11, 22, 33 &#125;; &#160; &#160; // pointer pi has the address of variable i &#160; &#160; int* pi = &#38;i; &#160; &#160; i = 0; &#160; &#160; // dereference the pi, i.e. [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/code-collection/c-pointer-in-unsafe-context.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Current Directory while running as WindowsService</title>
		<link>http://www.codemeit.com/code-collection/get-current-directory-while-running-as-windowsservice.html</link>
		<comments>http://www.codemeit.com/code-collection/get-current-directory-while-running-as-windowsservice.html#comments</comments>
		<pubDate>Mon, 08 Sep 2008 02:43:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Notes]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Directory]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[Windows service]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/code-collection/get-current-directory-while-running-as-windowsservice.html</guid>
		<description><![CDATA[During development, while you run the application as a console application or windows form application, often the code needs to load a specific file within the same folder of the exe assembly resides. The file can be located by using the file name directory since the default location will be the exe&#8217;s directory. For instance, [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/code-collection/get-current-directory-while-running-as-windowsservice.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WCF BasicHttpBinding equivalent CustomBinding</title>
		<link>http://www.codemeit.com/security/wcf-basichttpbinding-equivalent-custombinding.html</link>
		<comments>http://www.codemeit.com/security/wcf-basichttpbinding-equivalent-custombinding.html#comments</comments>
		<pubDate>Wed, 06 Aug 2008 09:02:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[Binding]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[HTTPS]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/security/wcf-basichttpbinding-equivalent-custombinding.html</guid>
		<description><![CDATA[In real world , web service of WCF in basichttpbinding might not be flexible enough to meet enterprise application requirements. What programmers are looking at is a more robust way of developing web service application in WCF. CustomBinding as the name describes that it alllows users design their own web service binding. At the point, [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/security/wcf-basichttpbinding-equivalent-custombinding.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>C# XmlSerializer, Add an attribute to an array element</title>
		<link>http://www.codemeit.com/xml/c-xmlserializer-add-an-attribute-to-an-array-element.html</link>
		<comments>http://www.codemeit.com/xml/c-xmlserializer-add-an-attribute-to-an-array-element.html#comments</comments>
		<pubDate>Fri, 27 Jun 2008 10:41:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XML]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=420</guid>
		<description><![CDATA[In order words, add an attribute to an object element after xml serialization, If you want something like, &#60;Rats count=&#8220;2&#8243;&#62; &#160; &#60;Rat&#62;little rat&#60;/Rat&#62; &#160; &#60;Rat&#62;old rat&#60;/Rat&#62; &#60;/Rats&#62; The C# code is &#91;XmlType&#40;&#8220;Rats&#8221;&#41;&#93; &#160; &#160; public class Rats &#160; &#160; &#123; &#160; &#160; &#160; &#160; &#91;XmlAttribute&#40;&#8220;count&#8221;&#41;&#93; &#160; &#160; &#160; &#160; public int Count &#123; get; set; [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/xml/c-xmlserializer-add-an-attribute-to-an-array-element.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C# auto property</title>
		<link>http://www.codemeit.com/uncategorized/c-auto-property.html</link>
		<comments>http://www.codemeit.com/uncategorized/c-auto-property.html#comments</comments>
		<pubDate>Tue, 25 Mar 2008 09:32:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/?p=114</guid>
		<description><![CDATA[ReSharper is good tool, it taught me the auto property in .NET 3.5 today. // traditional property declaration &#160; &#160; public class Foo &#160; &#160; &#123; &#160; &#160; &#160; &#160; private string _name; &#160; &#160; &#160; &#160; public string Name &#160; &#160; &#160; &#160; &#123; &#160; &#160; &#160; &#160; &#160; &#160; get &#123; return _name; [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/uncategorized/c-auto-property.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# Extension method, GetValueOrNull for value type object</title>
		<link>http://www.codemeit.com/code-collection/c-extension-method-getvalueornull.html</link>
		<comments>http://www.codemeit.com/code-collection/c-extension-method-getvalueornull.html#comments</comments>
		<pubDate>Tue, 11 Mar 2008 23:37:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Notes]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[C# Generic]]></category>
		<category><![CDATA[Extension Method]]></category>
		<category><![CDATA[null]]></category>

		<guid isPermaLink="false">http://www.codemeit.com/code-collection/c-extension-method-getvalueornull.html</guid>
		<description><![CDATA[Return null if the value type object has default value. public static T? GetValueOrNull&#60;t&#62;&#40; this T value &#41; where T : struct &#123; &#160; &#160;if&#40; value.Equals&#40; default&#40; T &#41; &#41; &#41; &#160; &#160; &#160; return new Nullable&#60;t&#62;&#40;&#41;; &#160; &#160;else &#160; &#160; &#160; return value; &#125; // Usage int i = default&#40;int&#41;; //0 int? i = [...]]]></description>
		<wfw:commentRss>http://www.codemeit.com/code-collection/c-extension-method-getvalueornull.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
