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]
Haz 14 2018
C# Notlarım
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/
ss[“key1″] =”india”;
ss[“key2”] = “bharat”;
{
Console.WriteLine(“Key value is ” + gg);
Console.Read();
}
{
Console.WriteLine(“Key and value are ” + gg.Key + ” ” + gg.Value);
Console.Read();
}
By Burhan KARADERE • Genel • 0 • Tags: c, notlarım