System.RuntimeTypeHandle.GetTypeByNameUsingCARules C# (CSharp) Method

GetTypeByNameUsingCARules() static private method

static private GetTypeByNameUsingCARules ( string name, Module scope ) : Type
name string
scope Module
return 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

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);
        }