Aklımda Kalası Kelimeler

* давайте работать вместе
* Zarf ve Mazruf, Zerafet(xHoyratlık) ile aynı kökten(za-ra-fe) gelir
* Bedesten
* Suç subuta ermiştir - Suç sabit olmuştur
GetCallingAssembly etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
GetCallingAssembly etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

8 Aralık 2011 Perşembe

CSharp ile Assembly nin dosya yolunu bulmak

Aşağıdaki kod bu adresten.
static public string AssemblyDirectory {
     get
     {
         string codeBase = Assembly.GetExecutingAssembly().CodeBase;
         UriBuilder uri = new UriBuilder(codeBase);
         string path = Uri.UnescapeDataString(uri.Path);
         return Path.GetDirectoryName(path);
     } 
} 
Ya da:
//get the full location of the assembly with DaoTests in it
string fullPath = System.Reflection.Assembly.GetAssembly(typeof(DAL)).Location;

//get the folder that's in
string theDirectory = Path.GetDirectoryName(fullPath);
Bu koda bende bunları ekleyeyim: