C# Notlarım

Paylaş.

Bu notlar c# projesinin anlamaya çalışırken aldığım notlarımdır.

VP projesini c# çevirme

http://converter.telerik.com/

 

dockpanel örneği http://dockpanelsuite.com/

 

 

If we write in the same way as above for the hashtable then we would not get the desired values.
Hashtable ss = new Hashtable();
ss[“key1″] =”india”;
ss[“key2”] = “bharat”;
    foreach (object gg in ss)
{
Console.WriteLine(“Key value is ” + gg);
Console.Read();
}
Here we get  System.Collections.DictionaryEntry and System.Collections.DictionaryEntry as output instead of the value pairs stored in the hashtable.
In this case we can help of DictinaryEntry object for iterating the hashtable.
 foreach(DictionaryEntry gg in ss)
{
Console.WriteLine(“Key  and  value are ” + gg.Key + ”   ”  + gg.Value);
Console.Read();
}
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)