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

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