Exemplo n.º 1
0
        public override ExpressionEmitter Prepare(
            IMethodInformation method, DecodeContext decodeContext)
        {
            if (method.IsStatic)
            {
                throw new InvalidProgramSequenceException(
                          "Invalid method token (static): Location={0}, Method={1}",
                          decodeContext.CurrentCode.RawLocation,
                          method.FriendlyName);
            }

            return(CallConverterUtilities.Prepare(method, decodeContext, true));
        }
Exemplo n.º 2
0
 public override ExpressionEmitter Prepare(
     IMethodInformation method, DecodeContext decodeContext)
 {
     return(CallConverterUtilities.Prepare(method, decodeContext, false));
 }