Exemple #1
0
        public override Func <IExtractContext, string[]> Apply(
            MethodReference method, DecodeContext decodeContext)
        {
            var md = method.Resolve();

            if (md.IsStatic)
            {
                throw new InvalidProgramSequenceException(
                          "Invalid method token (static): Offset={0}, Method={1}",
                          decodeContext.Current.Offset,
                          md.GetFullMemberName());
            }

            // TODO: Support virtual method

            return(CallConverterUtilities.Apply(md, decodeContext));
        }
Exemple #2
0
 public override Func <IExtractContext, string[]> Apply(
     MethodReference method, DecodeContext decodeContext)
 {
     return(CallConverterUtilities.Apply(method, decodeContext));
 }