espindl / nzemberek

Automatically exported from code.google.com/p/nzemberek
2 stars 0 forks source link

EnumMap metoduna cozum #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
TurkiyeTukcesi sınıfında kullanılan EnumMap'i gecistirdik, ne yapabiliriz...

Original issue reported on code.google.com by spino...@gmail.com on 2 Dec 2006 at 10:35

GoogleCodeExporter commented 9 years ago
EnumMap yerine normal HashTable (ya da HashMap) kullanabilirsiniz. anahtar 
olarak
enum adini ya da dogrudan enumun kendisini, deger olarak ilgili String 
kullanilabilir
saniyorum. Onceden bizde HashMap kullaniyorduk, EnumMap ozel yapisi daha zarif
oldugundan degistirmistim.

Original comment by ahme...@gmail.com on 3 Dec 2006 at 4:50

GoogleCodeExporter commented 9 years ago
Tamam o zaman. Ben de zaten şu şekilde halledip bırakmıştım...
//IDictionary<KelimeTipi, String> baslangicEkAdlari = new 
EnumMap(typeof(KelimeTipi));
yerine...
IDictionary<KelimeTipi, String> baslangicEkAdlari = new  
Dictionary<KelimeTipi,String>();

Şimdilik iyi o zaman.
Teşekkürler

Original comment by spino...@gmail.com on 3 Dec 2006 at 8:18

GoogleCodeExporter commented 9 years ago
Dictionary<KelimeTipi,String>() ile halledildi...

Original comment by spino...@gmail.com on 7 Dec 2006 at 8:58