internal static IEnumerable<MethodInfo> GetStaticMethods(this Type type) { return type.GetRuntimeMethods().Where(m => m.IsStatic); } }