Пример #1
0
        public override Func <IExtractContext, string[]> Apply(
            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.Apply(method, decodeContext, true));
        }
Пример #2
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));
        }
Пример #3
0
 public override Func <IExtractContext, string[]> Apply(
     IMethodInformation method, DecodeContext decodeContext)
 {
     return(CallConverterUtilities.Apply(method, decodeContext, false));
 }
Пример #4
0
 public override ExpressionEmitter Prepare(
     IMethodInformation method, DecodeContext decodeContext)
 {
     return(CallConverterUtilities.Prepare(method, decodeContext, false));
 }