2014-07-16から1日間の記事一覧

c#で、クラスから dll パスを取得する方法

System.Reflection.Assembly.Locationを使う。 System.Reflection.Assembly asm = System.Reflection.Assembly.GetAssembly(targetObject.GetType()); Console.WriteLine(asm.Location);