Author: rogersennert_sz793679

Impressum

Provider:
Blue Star Software
Dipl.-Ing. tech. Informatik Roger Sennert
Fritz-Krämer-Weg 3
57258 Freudenberg
phone: +49 2734 436520
Germany
e-mail: info(at)bluestarsoftware.de

VAT identification number according to § 27 a Umsatzsteuergesetz:
DE 216762420

In accordance with § 28 BDSG we object to any kind of commercial use and passing on of our data.

Liability: The contents of this website have been examined carefully and were created to the best of our knowledge. However, we do not claim responsibility for the completeness, topicality, quality and correctness of the information presented on this site.
In spite of careful examination of external links, we do not accept responsibility for their contents. It is the providers of the linked sites who are responsible for their contents. We have made sure that these sites neither break any law nor offend common decency exactly once, that is before they were incorporated into our site.

Data security: Personal data are ascertained only with your knowledge and your consent. If you wish, we will send you all the information about your stored personal data free of charge.

Violation of patent law: If you think that any of the items on this website violates one of your patents, please tell us immediately so that we can change the particular item as soon as possible.

Google Analytics: This website uses Google Analytics, a web analytics service provided by Google, Inc. (”Google”). Google Analytics uses “cookies”, which are text files placed on your computer, to help the website analyze how users use the site. The information generated by the cookie about your use of the website (including your IP address) will be transmitted to and stored by Google on servers in the United States. Google will use this information for the purpose of evaluating your use of the website, compiling reports on website activity for website operators and providing other services relating to website activity and internet usage. Google may also transfer this information to third parties where required to do so by law, or where such third parties process the information on Google’s behalf. Google will not associate your IP address with any other data held by Google. You may refuse the use of cookies by selecting the appropriate settings on your browser, however please note that if you do this you may not be able to use the full functionality of this website. By using this website, you consent to the processing of data about you by Google in the manner and for the purposes set out above.

Dictionary with foreach

I’ve just want to mention how to do a foreach with a .NET 2.0 Hashtable:

[sourcecode lang=“c#“]Dictionary< string, int > dict = new Dictionary< string, int >();
dict[„one“] = 1;
dict[„two“] = 2;
dict[„thress“] = 3;

foreach( KeyValuePair< string, int > data in dict)
{
Debug.WriteLine( data.Key + “ => “ + data.Value );
}[/sourcecode] So this time KeyValuePair is our friend.