- 714 名前:デフォルトの名無しさん mailto:sage [2010/06/20(日) 00:00:25 ]
- >>711
public class Hoge { private Hoge() {} public static Hoge() { string exename = Path.GetFileName(Assembly.GetEntryAssembly().Location); if (exename != "hoge.exe") throw new Exception(); return new Hoge(); } } でも、リフレクションやLCGを使われたらどうなるの?
|

|