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