public static IEnumerable <MethodInfo> GetRuntimeMethods(this Type type) { if (type == null) { throw new ArgumentNullException("type"); } return(GenericsReflection.GetMethods(type, Type.BindFlags.AllMembers)); }
/// <summary> /// Gets all methods of this type that match the given binding flags. /// </summary> public MethodInfo[] GetMethods(BindingFlags flags) { return(GenericsReflection.GetMethods(this, flags).ToArray()); }
/// <summary> /// Gets all public methods of this type. /// </summary> public MethodInfo[] GetMethods() { return(GenericsReflection.GetMethods(this, BindFlags.PublicMembers) .ToArray()); }