コード例 #1
0
        /// <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&lt;TypeMethodInfo&gt;.</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);
        }
コード例 #2
0
 /// <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());
 }