Пример #1
0
        public EmitInstruction Emit(IEmitOpCodeMethod opCode, EmitMethod method)
        {
            var instruction = new EmitInstruction(opCode, method);

            AddInstruction(instruction);
            return(instruction);
        }
Пример #2
0
 public EmitProperty(
     EmitType declaringType,
     string name,
     EmitType propertyType,
     Func <EmitProperty, IReadOnlyList <EmitParameter> > parameters,
     EmitMethod getMethod, EmitMethod setMethod
     ) :
     base(declaringType, name)
 {
     PropertyType = propertyType;
     Parameters   = parameters(this);
     GetMethod    = getMethod;
     SetMethod    = setMethod;
 }