コード例 #1
0
 public ProxyMethodParameterCodec(MethodParameterDescription description)
 {
     type     = description.Type;
     way      = description.Way;
     argIndex = description.Index + 1;
     codec    = new IndirectCodec(type);
     emitLoad = description.Way == MethodParameterWay.Val
         ? Loaders.Argument(argIndex)
         : Loaders.ArgumentRef(argIndex, description.Type);
 }
コード例 #2
0
 public HandlerParameterCodec(IEmittingContext emittingContext, MethodParameterDescription description)
 {
     this.emittingContext = emittingContext;
     type  = description.Type;
     way   = description.Way;
     codec = new IndirectCodec(type);
     if (IsResponseParameter)
     {
         local = emittingContext.IL.DeclareLocal(type);
     }
 }