Beispiel #1
0
        private MethodHandle MakeUninitializedCallSite(MethodType targetType)
        {
            MethodType   basicType = targetType.BasicType();
            MethodHandle invoker   = basicType.Form().CachedMethodHandle(MethodTypeForm.MH_UNINIT_CS);

            if (invoker == null)
            {
                invoker = THROW_UCS.AsType(basicType);
                invoker = basicType.Form().SetCachedMethodHandle(MethodTypeForm.MH_UNINIT_CS, invoker);
            }
            // unchecked view is OK since no values will be received or returned
            return(invoker.ViewAsType(targetType, false));
        }