Example #1
0
 internal static Type[] GetMethodInstantiationPublic(IRuntimeMethodInfo method)
 {
     RuntimeType[] result = null;
     RuntimeMethodHandle.GetMethodInstantiation(RuntimeMethodHandle.EnsureNonNullMethodInfo(method).Value, JitHelpers.GetObjectHandleOnStack <RuntimeType[]>(ref result), false);
     GC.KeepAlive(method);
     return(result);
 }
Example #2
0
        public IntPtr GetFunctionPointer()
        {
            IntPtr functionPointer = RuntimeMethodHandle.GetFunctionPointer(RuntimeMethodHandle.EnsureNonNullMethodInfo(this.m_value).Value);

            GC.KeepAlive(this.m_value);
            return(functionPointer);
        }
Example #3
0
        internal static string ConstructInstantiation(IRuntimeMethodInfo method, TypeNameFormatFlags format)
        {
            string result = null;

            RuntimeMethodHandle.ConstructInstantiation(RuntimeMethodHandle.EnsureNonNullMethodInfo(method), format, JitHelpers.GetStringHandleOnStack(ref result));
            return(result);
        }
Example #4
0
 internal static RuntimeType[] GetMethodInstantiationInternal(IRuntimeMethodInfo method)
 {
     RuntimeType[] o = (RuntimeType[])null;
     RuntimeMethodHandle.GetMethodInstantiation(RuntimeMethodHandle.EnsureNonNullMethodInfo(method).Value, JitHelpers.GetObjectHandleOnStack <RuntimeType[]>(ref o), true);
     GC.KeepAlive((object)method);
     return(o);
 }