/// <summary> /// Gets the method overloads on given type. /// </summary> /// <param name="type">The type.</param> /// <param name="methodName">Name of the method.</param> /// <returns>IEnumerable<TypeMethodInfo>.</returns> internal IEnumerable <TypeMethodInfo> GetOverloads(InstanceInfo type, string methodName = null) { var searcher = _services.CreateSearcher(); searcher.SetCalledObject(type); //for getting all methods we use null constraint searcher.Dispatch(methodName); return(searcher.FoundResult); }
/// <summary> /// Create searcher provided byt TypeSystem. Searcher provides ability to search method /// according to its name in all assemblies reachable for defining assembly. /// </summary> /// <returns>Created <see cref="MethodSearcher" />.</returns> public MethodSearcher CreateSearcher() { return(Services.CreateSearcher()); }