<?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:blogger='http://schemas.google.com/blogger/2008' 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-5497912287259847249</id><updated>2025-02-28T16:38:01.365-08:00</updated><category term="Errors"/><category term="c#"/><category term="how to"/><category term="Assembly"/><category term="Exceptions"/><category term="Guid"/><category term="Reflection"/><category term="ReportViewer"/><category term="SqlClient"/><category term="asp.net"/><category term="base64"/><category term="covert"/><category term="crypto"/><category term="free application"/><category term="net framework"/><category term="programming"/><category term="source code"/><category term="threading"/><category term="tsql"/><title type='text'>C# Programming Reference</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5497912287259847249.post-7817421951591301495</id><published>2010-03-28T22:06:00.000-07:00</published><updated>2010-03-30T14:22:40.397-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Errors"/><category scheme="http://www.blogger.com/atom/ns#" term="SqlClient"/><title type='text'>ExecuteReader: Connection property has not been initialized</title><content type='html'>This is common error if you don&#39;t set connection property of the command object.&lt;br /&gt;&lt;br /&gt;Suppose that you have code something like this:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;SqlConnection con = new SqlConnection(myConnectionString);&lt;br /&gt;SqlCommand cmd = new SqlCommand(&quot;SQL STATEMENT&quot;);&lt;br /&gt;&lt;br /&gt;con.Open();&lt;br /&gt;cmd.ExecuteReader();&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;well,  in this peace of code your command object doesn&#39;t know anything about your connection. To fix this create your command object like this:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;SqlCommand cmd = new SqlCommand(&quot;SQL STATEMENT&quot;, con);&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;or if you use empty constructor or don&#39;t set connection property in costructor assign connection as property:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;cmd.Connection = con;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/7817421951591301495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5497912287259847249/7817421951591301495?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/7817421951591301495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/7817421951591301495'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/2010/03/executereader-connection-property-has.html' title='ExecuteReader: Connection property has not been initialized'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5497912287259847249.post-8998803210644671827</id><published>2008-12-07T15:40:00.000-08:00</published><updated>2008-12-07T15:45:12.031-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="base64"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="crypto"/><category scheme="http://www.blogger.com/atom/ns#" term="how to"/><title type='text'>Is Base64String</title><content type='html'>This is a function to check is the string base64 string or not.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;public static bool IsBase64String(string s)&lt;br /&gt;{&lt;br /&gt;    if ((s.Length % 4) != 0)&lt;br /&gt;    {&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;    try&lt;br /&gt;    {&lt;br /&gt;        MemoryStream stream = new MemoryStream(Convert.FromBase64String(s));&lt;br /&gt;        return true;&lt;br /&gt;    }&lt;br /&gt;    catch&lt;br /&gt;    {&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;keys: c#, base64, crypto,&lt;br /&gt;&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/8998803210644671827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5497912287259847249/8998803210644671827?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/8998803210644671827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/8998803210644671827'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/2008/12/is-base64string.html' title='Is Base64String'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5497912287259847249.post-5505691846961027271</id><published>2008-08-21T12:30:00.000-07:00</published><updated>2008-10-24T12:33:22.734-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assembly"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Guid"/><category scheme="http://www.blogger.com/atom/ns#" term="Reflection"/><title type='text'>How to get C# Assembly GUID</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;How to get C# Assembly GUID using Reflection&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;public string AssemblyGuidString(System.Reflection.Assembly assembly)&lt;br /&gt;{&lt;br /&gt;  object[] objects =&lt;br /&gt;assembly.GetCustomAttributes(typeof(System.Runtime.InteropServices.GuidAttribute), false);&lt;br /&gt;  if (objects.Length &gt; 0)&lt;br /&gt; {&lt;br /&gt;   return ((System.Runtime.InteropServices.GuidAttribute)objects[0]).Value;&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt;   return String.Empty;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;keys: c#, assembly, reflection, guid, attributes</content><link rel='replies' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/5505691846961027271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5497912287259847249/5505691846961027271?isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/5505691846961027271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/5505691846961027271'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/2008/08/how-to-get-c-assembly-guid.html' title='How to get C# Assembly GUID'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5497912287259847249.post-7071870161660768738</id><published>2008-07-16T08:39:00.000-07:00</published><updated>2008-07-16T09:00:58.083-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Errors"/><category scheme="http://www.blogger.com/atom/ns#" term="threading"/><title type='text'>Cross-thread operation not valid: Control &#39;xxxxx&#39; accessed from a thread other than the thread it was created on.</title><content type='html'>This exception is thrown when you try to access control from thread other than the thread it was created on.&lt;br /&gt;To access control and control properties use &lt;span style=&quot;font-weight: bold;&quot;&gt;delegate&lt;/span&gt;. Its easy. Here is example for accessing Label control (label1) Text property.&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;delegate void updateLabelTextDelegate(string newText);&lt;br /&gt;private void updateLabelText(string newText)&lt;br /&gt;{&lt;br /&gt; if (label1.InvokeRequired)&lt;br /&gt; {&lt;br /&gt;     // this is worker thread&lt;br /&gt;     updateLabelTextDelegate del = new updateLabelTextDelegate(updateLabelText);&lt;br /&gt;     label1.Invoke(del, new object[] { newText });&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt;     // this is UI thread&lt;br /&gt;     label1.Text = newText;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Now whenever you want to change text of label you call method &lt;b&gt;updateLabelText(newText).&lt;/b&gt; You can do the same for all other controls.&lt;br /&gt;&lt;br /&gt;keys: gui multithreading,  update from another thread, threading, cross-thread,</content><link rel='replies' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/7071870161660768738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5497912287259847249/7071870161660768738?isPopup=true' title='28 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/7071870161660768738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/7071870161660768738'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/2008/07/cross-thread-operation-not-valid.html' title='Cross-thread operation not valid: Control &#39;xxxxx&#39; accessed from a thread other than the thread it was created on.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>28</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5497912287259847249.post-8686731797354722141</id><published>2008-06-22T23:05:00.000-07:00</published><updated>2008-06-22T23:20:52.489-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="how to"/><title type='text'>Set proxy for WebRequest in web.config</title><content type='html'>Put this in web.config, you can set usesystemdefault but for me that dont work.&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;system.net&amp;gt;&lt;br /&gt;  &amp;lt;defaultproxy&amp;gt;&lt;br /&gt;    &amp;lt;proxy&lt;br /&gt;      usesystemdefault=&quot;false&quot;&lt;br /&gt;      proxyaddress=&quot;http://192.168.1.1:3128&quot;&lt;br /&gt;      bypassonlocal=&quot;true&quot;&lt;br /&gt;    &amp;lt;/proxy&amp;gt;&lt;br /&gt;  &amp;lt;/defaultproxy&amp;gt;&lt;br /&gt;&amp;lt;/system.net&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;Keys: asp.net, webrequest, proxy.</content><link rel='replies' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/8686731797354722141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5497912287259847249/8686731797354722141?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/8686731797354722141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/8686731797354722141'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/2008/06/set-proxy-for-webrequest-in-webconfig.html' title='Set proxy for WebRequest in web.config'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5497912287259847249.post-8733386739270743406</id><published>2008-06-22T20:40:00.000-07:00</published><updated>2008-06-23T09:32:09.200-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Errors"/><category scheme="http://www.blogger.com/atom/ns#" term="tsql"/><title type='text'>RESTORE cannot process database because it is in use by this session</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;System.Data.SqlClient.SqlError: RESTORE cannot process database because it is&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;in use by this session. It is recommended that the master database be used&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;when performing this operation.&lt;/span&gt;&quot;&lt;br /&gt;&lt;br /&gt;If you are using Microsoft.SqlServer.SMO set SqlServer.ConnectionContext.DatabaseName to &quot;master&quot;.&lt;br /&gt;If you are using TSQL, select master database (USE master).&lt;br /&gt;&lt;br /&gt;Keys: error, smo, tsql, c#.</content><link rel='replies' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/8733386739270743406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5497912287259847249/8733386739270743406?isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/8733386739270743406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/8733386739270743406'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/2008/06/restore-cannot-process-database-because.html' title='RESTORE cannot process database because it is in use by this session'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5497912287259847249.post-2799924230853810392</id><published>2008-04-11T15:37:00.000-07:00</published><updated>2008-07-16T09:21:11.940-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Errors"/><title type='text'>C# DataGridView and Multithreading Problem</title><content type='html'>I had some problems updating &lt;span style=&quot;font-weight: bold;&quot;&gt;datagridview&lt;/span&gt; from another thread. Problem is in painting scrollbars (vertical one). One thing that is interesting is that everything is working fine if you start your program from &lt;span style=&quot;font-weight: bold;&quot;&gt;VisualStudio&lt;/span&gt; debugger.&lt;br /&gt;&lt;br /&gt;My first solution to this problem was: I&#39;ve disabled scrollbars and application works fine.&lt;br /&gt;&lt;br /&gt;After some time of research &lt;span style=&quot;font-weight: bold;&quot;&gt;I&#39;ve found solution to my problem!!!&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;to simplify there is two posibilities:&lt;br /&gt;&lt;br /&gt;  1. you have datagridview without binded datasource&lt;br /&gt;  Solution: use delegate to add rows, or update existing.&lt;br /&gt;&lt;br /&gt;  2. you have datagridview with binded datasource (for example datatable)&lt;br /&gt;  Solution: use delegate to update datatable/datasource,&lt;br /&gt;&lt;br /&gt;if you dont now how, you can start from this &lt;a href=&quot;http://c-sharp-programming.blogspot.com/2008/07/cross-thread-operation-not-valid.html&quot;&gt;article&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;keys: c# datagridview multithread freeze, scrollbar problem, c# application freeze, program hangup, multithread gui update, datagridview update from another thread, threading, csharp.</content><link rel='replies' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/2799924230853810392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5497912287259847249/2799924230853810392?isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/2799924230853810392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/2799924230853810392'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/2008/04/datagridview-and-multithreading.html' title='C# DataGridView and Multithreading Problem'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5497912287259847249.post-5772774709570819525</id><published>2008-03-18T13:19:00.000-07:00</published><updated>2008-03-18T13:22:30.263-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="covert"/><category scheme="http://www.blogger.com/atom/ns#" term="how to"/><title type='text'>How to convert string to byte[]</title><content type='html'>Here is a litle function to convert string to byte array.&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;public static byte[] StringToByteArray(string inputString)&lt;br /&gt;{&lt;br /&gt;  System.Text.ASCIIEncoding encoding=new System.Text.ASCIIEncoding();&lt;br /&gt;  return encoding.GetBytes(inputString);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/5772774709570819525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5497912287259847249/5772774709570819525?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/5772774709570819525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/5772774709570819525'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/2008/03/how-to-convert-string-to-byte.html' title='How to convert string to byte[]'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5497912287259847249.post-6092355029013749930</id><published>2008-03-16T04:55:00.000-07:00</published><updated>2008-03-16T05:09:00.892-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Errors"/><category scheme="http://www.blogger.com/atom/ns#" term="Exceptions"/><category scheme="http://www.blogger.com/atom/ns#" term="ReportViewer"/><title type='text'>Deserialization failed: The type initializer for &quot;Microsoft.ReportDesigner.Drawing.Language&quot; threw an exception.</title><content type='html'>I had this error because I registered custom CultureInfo with same name that already exists in collection.&lt;br /&gt;&lt;br /&gt;Above is peace of code that you can use to check if you have the same problem. If this code don&#39;t throw an exception, than you have some other problem.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;private void test()&lt;br /&gt;{&lt;br /&gt;  CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.AllCultures);&lt;br /&gt;  Hashtable hashtable = new Hashtable();&lt;br /&gt;  ArrayList m_languages = new ArrayList();&lt;br /&gt;  hashtable.Add(&quot;&quot;, &quot;Default&quot;);&lt;br /&gt;  m_languages.Add(&quot;&quot;);&lt;br /&gt;  for (int i = 0; i &lt; cultures.Length; i++)&lt;br /&gt;  {&lt;br /&gt;    CultureInfo info = cultures[i];&lt;br /&gt;    if (info.Name != &quot;&quot;)&lt;br /&gt;    {&lt;br /&gt;      hashtable.Add(info.Name, info.DisplayName);&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/6092355029013749930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5497912287259847249/6092355029013749930?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/6092355029013749930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/6092355029013749930'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/2008/03/deserialization-failed-type-initializer.html' title='Deserialization failed: The type initializer for &quot;Microsoft.ReportDesigner.Drawing.Language&quot; threw an exception.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5497912287259847249.post-8474295652743196586</id><published>2008-02-08T08:45:00.000-08:00</published><updated>2008-02-08T08:48:02.521-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="free application"/><category scheme="http://www.blogger.com/atom/ns#" term="net framework"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="source code"/><title type='text'>Welcome to the C# Programming Reference</title><content type='html'>I&#39;ve created this blog as reference to C# programming tools, articles, and free/open source code.</content><link rel='replies' type='application/atom+xml' href='http://c-sharp-programming.blogspot.com/feeds/8474295652743196586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5497912287259847249/8474295652743196586?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/8474295652743196586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5497912287259847249/posts/default/8474295652743196586'/><link rel='alternate' type='text/html' href='http://c-sharp-programming.blogspot.com/2008/02/welcome-to-c-programming-reference.html' title='Welcome to the C# Programming Reference'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>