public static IEnumerable<MethodInfo> GetRuntimeMethods (this Type type) { if (type == null) throw new ArgumentNullException ("type"); return type.GetMethods (AllMembersBindingFlags); }