Mono.Debugger.Frontend.ScriptingContext.FindMethod C# (CSharp) Method

FindMethod() public method

public FindMethod ( string name ) : SourceLocation
name string
return Mono.Debugger.SourceLocation
        public SourceLocation FindMethod(string name)
        {
            foreach (Module module in CurrentProcess.Modules) {
                MethodSource method = module.FindMethod (name);

                if (method != null)
                    return new SourceLocation (method);
            }

            return null;
        }

Usage Example

コード例 #1
0
        protected SourceLocation DoParseExpression(ScriptingContext context,
                                                   LocationType type, string arg)
        {
            F.Expression     expr  = context.ParseExpression(arg);
            MethodExpression mexpr = expr.ResolveMethod(context, type);

            if (mexpr != null)
            {
                return(mexpr.EvaluateSource(context));
            }
            else
            {
                return(context.FindMethod(arg));
            }
        }
All Usage Examples Of Mono.Debugger.Frontend.ScriptingContext::FindMethod