/// <summary> /// Performs a constrained virtual 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 ConstrainedCall <T>(this XsILGenerator generator, MethodInfo method) => generator.ConstrainedCall(typeof(T), method);