<?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# Generic</title>
	<atom:link href="http://www.codemeit.com/tag/generic/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codemeit.com</link>
	<description>programming, software &#38; problem solving</description>
	<lastBuildDate>Mon, 19 Sep 2011 08:55:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<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# 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>

