<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4934809029682304394</id><updated>2012-02-15T23:13:32.957-08:00</updated><category term='Hashtable'/><category term='Queue'/><category term='.net'/><category term='Stack'/><category term='Arraylist'/><category term='collections'/><category term='Dictionaries'/><category term='sortedlist'/><category term='Example of String Array in .Net'/><category term='Limitation of Arrays'/><title type='text'>Collection and Arrays in .Net</title><subtitle type='html'>Collections and arrays in .net.  Here you find discussion on arrays, arraylist, stack, queue, dictionaries, hashtable, sortedlist, string and stringbuilder, etc.
&lt;br&gt;&lt;br&gt;
&lt;b&gt;&lt;big&gt;For .Net Articles, Links, Code and much more logon to &lt;a href="http://www.DailyFreeCode.com"&gt;DailyFreeCode.com&lt;/a&gt;&lt;/big&gt;&lt;/b&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-401231224620850630</id><published>2007-05-04T14:01:00.001-07:00</published><updated>2007-05-04T14:01:59.428-07:00</updated><title type='text'>Difference Between String and StringBuilder</title><content type='html'>&lt;table class="MsoNormalTable" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;String Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;StringBuilder&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal"&gt;Once the string object is created, its length and content   cannot be modified.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal"&gt;Even after object is created, it can be able to modify   length and content.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal"&gt;Slower&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal"&gt;Faster&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-401231224620850630?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/401231224620850630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=401231224620850630' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/401231224620850630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/401231224620850630'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/difference-between-string-and.html' title='Difference Between String and StringBuilder'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-4465544818713902529</id><published>2007-05-04T14:00:00.000-07:00</published><updated>2007-05-04T14:01:01.922-07:00</updated><title type='text'>Example of Single Dimension Array in .Net</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;int [] intArray = new int[3];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;intArray[2] = 22;&lt;span style=""&gt;           &lt;/span&gt;// set the third element to 22&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-4465544818713902529?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/4465544818713902529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=4465544818713902529' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/4465544818713902529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/4465544818713902529'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/example-of-single-dimension-array-in.html' title='Example of Single Dimension Array in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-7563412236628775218</id><published>2007-05-04T13:59:00.001-07:00</published><updated>2007-05-04T13:59:59.643-07:00</updated><title type='text'>Example of Multi Dimension Array in .Net</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;int [][] myTable = new int[2,3];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;myTable[1,2] = 22;&lt;/span&gt;&lt;span style="font-size: 16pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-7563412236628775218?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/7563412236628775218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=7563412236628775218' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/7563412236628775218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/7563412236628775218'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/example-of-multi-dimension-array-in-net.html' title='Example of Multi Dimension Array in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-1106992469428710352</id><published>2007-05-04T13:56:00.000-07:00</published><updated>2007-05-04T13:58:50.497-07:00</updated><title type='text'>Example of Jagged Array in .Net : Variable Length Array in .Net</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;int [][] myTable = new int[3][];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;myTable[0] = new int[5];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;myTable[1] = new int[2];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;myTable[2] = new int[4];&lt;/span&gt;&lt;span style="font-size: 14pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;myTable[0][2] = 11;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-1106992469428710352?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/1106992469428710352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=1106992469428710352' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/1106992469428710352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/1106992469428710352'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/example-of-jagged-array-in-net.html' title='Example of Jagged Array in .Net : Variable Length Array in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-4082172764260301451</id><published>2007-05-04T13:53:00.001-07:00</published><updated>2007-05-04T13:53:57.256-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Example of String Array in .Net'/><title type='text'>Example of String Array in .Net</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;string []names = new string[4];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 11pt;"&gt;names[2] = “God will make me win”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-4082172764260301451?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/4082172764260301451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=4082172764260301451' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/4082172764260301451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/4082172764260301451'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/example-of-string-array-in-net.html' title='Example of String Array in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-5208371646704085300</id><published>2007-05-04T13:51:00.000-07:00</published><updated>2007-05-04T13:52:59.981-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Limitation of Arrays'/><title type='text'>Limitation of Arrays</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 8pt; font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;The &lt;u&gt;&lt;span style="font-weight: bold;"&gt;size of an array is always fixe&lt;/span&gt;d&lt;/u&gt; and must be defined at the time of instantiation of an array. &lt;/span&gt;&lt;span style="font-size: 14pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 8pt; font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Secondly, an &lt;u style="font-weight: bold;"&gt;array can only contain objects of the same data type&lt;/u&gt;, which we need to define at the time of its instantiation.&lt;/span&gt;&lt;span style="font-size: 14pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-5208371646704085300?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/5208371646704085300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=5208371646704085300' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/5208371646704085300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/5208371646704085300'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/limitation-of-arrays.html' title='Limitation of Arrays'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-7704916716972837730</id><published>2007-05-04T12:48:00.000-07:00</published><updated>2007-05-04T12:50:14.111-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='collections'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>Collections  in .Net : Namespace for Collections in .Net</title><content type='html'>&lt;pre style=""&gt;&lt;span style="font-family: Verdana;"&gt;System.Collections namespace&lt;/span&gt;&lt;span style="font-size: 11pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-7704916716972837730?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/7704916716972837730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=7704916716972837730' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/7704916716972837730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/7704916716972837730'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/collections-in-net-namespace-for.html' title='Collections  in .Net : Namespace for Collections in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-3681495648277870715</id><published>2007-05-04T12:46:00.000-07:00</published><updated>2007-05-04T12:48:46.946-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='Arraylist'/><title type='text'>ArrayList Concept in .Net</title><content type='html'>&lt;pre&gt;Provides a collection similar to an array, but that grows dynamically as&lt;br /&gt;the number of elements change.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;&lt;br /&gt;static void Main()&lt;br /&gt;{&lt;br /&gt;    ArrayList list = new ArrayList();&lt;br /&gt;    list.Add(11);&lt;br /&gt;    list.Add(22);&lt;br /&gt;    list.Add(33);&lt;br /&gt;    foreach(int num in list)&lt;br /&gt;    {&lt;br /&gt;        Console.WriteLine(num);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Output&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;blockquote&gt;11&lt;br /&gt;22&lt;br /&gt;33&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-3681495648277870715?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/3681495648277870715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=3681495648277870715' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/3681495648277870715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/3681495648277870715'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/arraylist-concept-in-net.html' title='ArrayList Concept in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-1972269812575664406</id><published>2007-05-04T12:43:00.000-07:00</published><updated>2007-05-04T12:46:41.410-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='Stack'/><title type='text'>Stack Concept in .Net</title><content type='html'>&lt;pre&gt;A collection that works on the Last In First Out (LIFO) principle,&lt;br /&gt;i.e., the last item inserted is the first item removed from the collection.&lt;span style=""&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Push&lt;/span&gt; - To add element and &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Pop&lt;/span&gt; – To Remove element&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Collections;&lt;br /&gt;&lt;br /&gt;class Test&lt;br /&gt;{&lt;br /&gt;    static void Main()&lt;br /&gt;    {&lt;br /&gt;        Stack stack = new Stack();&lt;br /&gt;        stack.Push(2);&lt;br /&gt;        stack.Push(4);&lt;br /&gt;        stack.Push(6);&lt;br /&gt;       &lt;br /&gt;        while(stack.Count != 0)&lt;br /&gt;        {&lt;br /&gt;            Console.WriteLine(stack.Pop());&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Output&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;blockquote&gt;6&lt;span style="font-family: Verdana;"&gt;&lt;br /&gt;&lt;/span&gt;4&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;br /&gt;2&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-1972269812575664406?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/1972269812575664406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=1972269812575664406' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/1972269812575664406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/1972269812575664406'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/stack-concept-in-net.html' title='Stack Concept in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-1150390135857422809</id><published>2007-05-04T12:41:00.000-07:00</published><updated>2007-05-04T12:43:18.246-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Queue'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>Queue Concept in .Net</title><content type='html'>&lt;pre&gt;A collection that works on the First In First Out (FIFO) principle, i.e.,&lt;br /&gt;the first item inserted is the first item removed from the collection.&lt;span style=""&gt;  &lt;/span&gt;&lt;br /&gt;Enqueue - To add element and Dequeue – To Remove element&lt;/pre&gt;&lt;pre style="font-weight: bold;"&gt;Example:&lt;br /&gt;&lt;br /&gt;&lt;code style="font-weight: normal;"&gt;&lt;span style="color:#000000;"&gt;static void Main()&lt;br /&gt;{&lt;br /&gt;    Queue queue = new Queue();&lt;br /&gt;    queue.Enqueue(2);&lt;br /&gt;    queue.Enqueue(4);&lt;br /&gt;    queue.Enqueue(6);&lt;br /&gt;   &lt;br /&gt;    while(queue.Count != 0)&lt;br /&gt;    {&lt;br /&gt;        Console.WriteLine(queue.Dequeue());&lt;br /&gt;    }&lt;br /&gt;}&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Output&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;2&lt;span style="font-family: Verdana;"&gt;&lt;br /&gt;&lt;/span&gt;4&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;br /&gt;6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;blockquote&gt;  &lt;pre style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;pre style="font-weight: bold;"&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-1150390135857422809?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/1150390135857422809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=1150390135857422809' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/1150390135857422809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/1150390135857422809'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/queue-concept-in-net.html' title='Queue Concept in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-5696423840711517036</id><published>2007-05-04T12:24:00.000-07:00</published><updated>2007-05-04T12:26:17.459-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dictionaries'/><title type='text'>Dictionaries Concept in .Net</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Dictionaries are a kind of collection that store items in a key-value pair fashion.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style=""&gt;&lt;span style="font-family: Verdana;"&gt;System.Collections namespace&lt;/span&gt;&lt;span style="font-size: 11pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-5696423840711517036?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/5696423840711517036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=5696423840711517036' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/5696423840711517036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/5696423840711517036'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/dictionaries.html' title='Dictionaries Concept in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-3537918054768268129</id><published>2007-05-04T12:13:00.000-07:00</published><updated>2007-05-04T12:22:33.207-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='Hashtable'/><title type='text'>Hashtable Concept in .Net</title><content type='html'>&lt;pre&gt;Provides a collection of key-value pairs that are organized&lt;br /&gt;based on the hash code of the key.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;static void Main()&lt;br /&gt;{&lt;br /&gt;    Hashtable ht =  new Hashtable(20);&lt;br /&gt;    ht.Add("ht01", "DotNetGuts");&lt;br /&gt;    ht.Add("ht02", "EasyTutor.2ya.com");&lt;br /&gt;    ht.Add("ht03", "DailyFreeCode.com");&lt;br /&gt;   &lt;br /&gt;    Console.WriteLine("Printing Keys...");&lt;br /&gt;    foreach(string key in ht.Keys)&lt;br /&gt;    {&lt;br /&gt;        Console.WriteLine(key);&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;    Console.WriteLine("\nPrinting Values...");&lt;br /&gt;    foreach(string Value in ht.Values)&lt;br /&gt;    {&lt;br /&gt;        Console.WriteLine(Value);&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;    Console.WriteLine("Size of Hashtable is {0}", ht.Count);&lt;br /&gt;   &lt;br /&gt;    Console.WriteLine(ht.ContainsKey("ht01"));&lt;br /&gt;    Console.WriteLine(ht.ContainsValue("DailyFreeCode.com"));&lt;br /&gt;   &lt;br /&gt;    Console.WriteLine("\nRemoving element with key = ht02");&lt;br /&gt;    ht.Remove("ht02");&lt;br /&gt;   &lt;br /&gt;    Console.WriteLine("Size of Hashtable is {0}", ht.Count);&lt;br /&gt;   &lt;br /&gt;}&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Output&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Printing Keys...&lt;br /&gt;ht01&lt;br /&gt;ht02&lt;br /&gt;ht03&lt;br /&gt;&lt;br /&gt;Printing Values...&lt;br /&gt;DotNetGuts&lt;br /&gt;EasyTutor.2ya.com&lt;br /&gt;DailyFreeCode.com&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-family: Verdana;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="font-family: Verdana;"&gt;Size of Hashtable is 3&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-family: Verdana;"&gt;True&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-family: Verdana;"&gt;True&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-family: Verdana;"&gt;Removing element with key = ht02&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-family: Verdana;"&gt;Size of Hashtable is 2&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;pre&gt;&lt;span style="font-family: Verdana;"&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-3537918054768268129?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/3537918054768268129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=3537918054768268129' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/3537918054768268129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/3537918054768268129'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/hashtable-concept-in-net.html' title='Hashtable Concept in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4934809029682304394.post-2618806638646760092</id><published>2007-05-04T11:20:00.000-07:00</published><updated>2007-05-04T12:30:37.853-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sortedlist'/><title type='text'>SortedList Concept in .Net</title><content type='html'>&lt;pre&gt;Provides a collection of key-value pairs where the items are sorted according to the key. The items are accessible by both the keys and the index.&lt;/pre&gt;&lt;pre&gt;Example:&lt;/pre&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; static void Main()&lt;br /&gt;{&lt;br /&gt;  SortedList sl =  new SortedList();&lt;br /&gt;  sl.Add(18, "Java");&lt;br /&gt;  sl.Add(5, "C#");&lt;br /&gt;  sl.Add(11, "VB.Net");&lt;br /&gt;  sl.Add(1, "C++.Net");&lt;br /&gt;&lt;br /&gt;  Console.WriteLine("The items in the sorted order are...");&lt;br /&gt;  Console.WriteLine("\t Key \t\t Value");&lt;br /&gt;  Console.WriteLine("\t === \t\t =====");&lt;br /&gt;  for(int i=0; i&amp;lt;sl.Count; i++)&lt;br /&gt;  {&lt;br /&gt;      Console.WriteLine("\t {0} \t\t {1}",  sl.GetKey(i),&lt;br /&gt;      sl.GetByIndex(i));&lt;br /&gt;  }&lt;br /&gt;}&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Output&lt;br /&gt;&lt;/span&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Key Value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;==&lt;br /&gt;1 C++.Net&lt;br /&gt;5 C#&lt;br /&gt;11 VB.Net&lt;br /&gt;18 Java&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;/span&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Logon to http://www.DailyFreeCode.com for .Net FAQ, Tips and Tricks, Articles and more&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4934809029682304394-2618806638646760092?l=dng-collections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dng-collections.blogspot.com/feeds/2618806638646760092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4934809029682304394&amp;postID=2618806638646760092' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/2618806638646760092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4934809029682304394/posts/default/2618806638646760092'/><link rel='alternate' type='text/html' href='http://dng-collections.blogspot.com/2007/05/sortedlist-concept-in-net.html' title='SortedList Concept in .Net'/><author><name>DotNetGuts</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://bp3.blogger.com/_nuQwSyDoLk8/SELZrXH67CI/AAAAAAAAAgo/QFRXKRjCk_U/S220/jaishriganesh.jpg'/></author><thr:total>0</thr:total></entry></feed>
