GetModuleHandle() private method

private GetModuleHandle ( ) : ModuleHandle
return ModuleHandle
Esempio n. 1
0
 internal static unsafe Type GetTypeByNameUsingCARules(string name, Module scope)
 {
     if ((name == null) || (name.Length == 0))
     {
         throw new ArgumentException();
     }
     RuntimeTypeHandle handle2 = new RuntimeTypeHandle(_GetTypeByNameUsingCARules(name, (IntPtr) scope.GetModuleHandle().Value));
     return handle2.GetRuntimeType();
 }
        internal static Type GetTypeByNameUsingCARules(string name, Module scope)
        {
            if (name == null || name.Length == 0)
                throw new ArgumentException(); 

            return new RuntimeTypeHandle(_GetTypeByNameUsingCARules(name, (IntPtr)scope.GetModuleHandle().Value)).GetRuntimeType();
        }