Beispiel #1
0
        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));
        }
Beispiel #2
0
 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;
     }));
 }
Beispiel #3
0
 public static MethodInfo[] GetMethods <T>(this IDotnetExpander expander)
 {
     return(expander.GetMethods(typeof(T)));
 }