コード例 #1
0
 public Emit NewObject <ReferenceType, ParameterType1>()
 {
     InnerEmit.NewObject <ReferenceType, ParameterType1>();
     return(this);
 }
コード例 #2
0
 public Emit NewObject <ReferenceType, ParameterType1, ParameterType2, ParameterType3, ParameterType4, ParameterType5, ParameterType6>()
 {
     InnerEmit.NewObject <ReferenceType, ParameterType1, ParameterType2, ParameterType3, ParameterType4, ParameterType5, ParameterType6>();
     return(this);
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 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);
 }
コード例 #7
0
 public Emit NewObject <ReferenceType>()
 {
     InnerEmit.NewObject <ReferenceType>();
     return(this);
 }