public static MethodInfo[] GetMethods(this IDotnetExpander expander, string name) { string assemblyName, typeName, value; expander.ParseName(name, out assemblyName, out typeName, out value); return(expander.GetMethods(assemblyName, typeName)); }
public static MethodInfo GetMethod(this IDotnetExpander expander, string assemblyName, string typeName, string methodName) { return(Ex.Cache.Read("method", assemblyName ?? "", typeName ?? "", methodName ?? "", () => { foreach (MethodInfo methodInfo in expander.GetMethods(assemblyName, typeName)) { if (methodInfo.Name == methodName) { return methodInfo; } } return null; })); }
public static MethodInfo[] GetMethods <T>(this IDotnetExpander expander) { return(expander.GetMethods(typeof(T))); }