public Emit NewObject <ReferenceType, ParameterType1>() { InnerEmit.NewObject <ReferenceType, ParameterType1>(); return(this); }
public Emit NewObject <ReferenceType, ParameterType1, ParameterType2, ParameterType3, ParameterType4, ParameterType5, ParameterType6>() { InnerEmit.NewObject <ReferenceType, ParameterType1, ParameterType2, ParameterType3, ParameterType4, ParameterType5, ParameterType6>(); return(this); }
/// <summary> /// Pops # of parameters from the stack, invokes the constructor, and pushes a reference to the new object onto the stack. /// /// This method is provided as ConstructorBuilder cannot be inspected for parameter information at runtime. If the passed parameterTypes /// do not match the given constructor, the produced code will be invalid. /// </summary> public Emit NewObject(ConstructorBuilder constructor, Type[] parameterTypes) { InnerEmit.NewObject(constructor, parameterTypes); return(this); }
/// <summary> /// Pops # of parameters to the given constructor arguments from the stack, invokes the constructor, and pushes a reference to the new object onto the stack. /// </summary> public Emit NewObject(ConstructorInfo constructor) { InnerEmit.NewObject(constructor); return(this); }
/// <summary> /// Pops parameterTypes.Length arguments from the stack, invokes the constructor on the given type that matches parameterTypes, and pushes a reference to the new object onto the stack. /// </summary> public Emit NewObject(Type type, params Type[] parameterTypes) { InnerEmit.NewObject(type, parameterTypes); return(this); }
public Emit NewObject <ReferenceType, ParameterType1, ParameterType2, ParameterType3, ParameterType4, ParameterType5, ParameterType6, ParameterType7, ParameterType8, ParameterType9, ParameterType10, ParameterType11, ParameterType12, ParameterType13, ParameterType14, ParameterType15, ParameterType16>() { InnerEmit.NewObject <ReferenceType, ParameterType1, ParameterType2, ParameterType3, ParameterType4, ParameterType5, ParameterType6, ParameterType7, ParameterType8, ParameterType9, ParameterType10, ParameterType11, ParameterType12, ParameterType13, ParameterType14, ParameterType15, ParameterType16>(); return(this); }
public Emit NewObject <ReferenceType>() { InnerEmit.NewObject <ReferenceType>(); return(this); }