コード例 #1
0
 private IEnumerable <MethodInfo> GetAllMethods(Type type)
 {
     foreach (var @interface in TypeInspector.GetHierarchy(type, TypeHierarchyOrder.TopDown))
     {
         foreach (var methodInfo in @interface.GetMethods())
         {
             yield return(methodInfo);
         }
     }
 }