/// <summary> /// Pops a value type object from the evaluation stack, and pushes a reference to a new boxed instance of the object onto the evaluation stack /// </summary> /// <typeparam name="T">The type of the value type object</typeparam> /// <param name="generator">The <see cref="T:System.Reflection.Emit.XsILGenerator" /> to emit instructions from</param> public static XsILGenerator Box <T>(this XsILGenerator generator) where T : struct => generator.Box(typeof(T));