public DynamicMethodGen Method(Type returnType, ICodeGenBasicContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } return(new DynamicMethodGen(this, returnType, context)); }
private DynamicMethodGen(Attributes attrs, Type returnType, ICodeGenBasicContext context) : base(attrs.ownerType, returnType, context) { _attrs = attrs; if (attrs.AsInstance) { Parameter(attrs.ownerType, "this"); } }
protected RoutineGen(TypeGen owner, Type returnType, ICodeGenBasicContext context) : base(returnType, owner.TypeMapper) { _context = context; OwnerType = Owner = owner; if (owner != null) { owner.RegisterForCompletion(this); } }
protected RoutineGen(Type ownerType, Type returnType, ICodeGenBasicContext context) : base(returnType, context.TypeMapper) { _context = context; OwnerType = ownerType; }