Esempio n. 1
0
        /// <summary>
        /// Performs a constrained virtual tail call to the given method, popping an address to storage location of the value or reference (and performing a null check if necessary) and the requisite number of arguments from the evaluation stack
        /// </summary>
        /// <typeparam name="T">The type to constrain the call to</typeparam>
        /// <param name="generator">The <see cref="T:System.Reflection.Emit.XsILGenerator" /> to emit instructions from</param>
        /// <param name="method">The method to call</param>

        public static XsILGenerator ConstrainedTailCall <T>(this XsILGenerator generator, MethodInfo method)
        => generator.ConstrainedTailCall(typeof(T), method);