Exemple #1
0
        public static IEnumerable <MethodInfo> GetRuntimeMethods(this Type type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            return(GenericsReflection.GetMethods(type, Type.BindFlags.AllMembers));
        }
Exemple #2
0
 /// <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());
 }
Exemple #3
0
 /// <summary>
 /// Gets all public methods of this type.
 /// </summary>
 public MethodInfo[] GetMethods()
 {
     return(GenericsReflection.GetMethods(this, BindFlags.PublicMembers)
            .ToArray());
 }