Exemplo n.º 1
0
 public static IEnumerable <MethodInfo> GetMethod(ARApiController t)
 {
     return(t.GetType().GetMethods(BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public)
            .Where(m => !m.GetCustomAttributes(typeof(System.Runtime.CompilerServices.CompilerGeneratedAttribute), true).Any())
            .Where(m => m.GetCustomAttributes(typeof(Descriptor), false).Length > 0));
 }