System.RuntimeTypeHandle.GetTypeByNameUsingCARules C# (CSharp) Метод

GetTypeByNameUsingCARules() статический приватный Метод

static private GetTypeByNameUsingCARules ( string name, Module scope ) : Type
name string
scope Module
Результат Type
        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();
        }

Usage Example

Пример #1
0
        internal static RuntimeType GetTypeByNameUsingCARules(string name, RuntimeModule scope)
        {
            if (name == null || name.Length == 0)
            {
                throw new ArgumentException("name");
            }
            RuntimeType o = (RuntimeType)null;

            RuntimeTypeHandle.GetTypeByNameUsingCARules(name, scope.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack <RuntimeType>(ref o));
            return(o);
        }