//-------- static Program() { //USE THIS METHOD. Clarification: .Net initializes constructors and fields upon demand and NOT in // the C/C++ way. Because this constructor runs "before" Main, // DeviareLite internal hooks are properly installed before the Main // method is compiled by the JIT. cHook = new DeviareLiteInterop.HookLib(); }
static Hook() { cHook = new DeviareLiteInterop.HookLib(); }