Mono.Debugger.Frontend.ScriptingContext.FindMethod C# (CSharp) Méthode

FindMethod() public méthode

public FindMethod ( string name ) : SourceLocation
name string
Résultat 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

        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