Catel.Core by GeertvanHorrik

<PackageReference Include="Catel.Core" Version="4.1.0-unstable0129" />

 TypeInfoExtensions

public static class TypeInfoExtensions
The type info extensions.
public static ConstructorInfo GetConstructor(this TypeInfo typeInfo, Type[] types, BindingFlags bindingFlags)

Gets the constructor with the specified types.

public static ConstructorInfo[] GetConstructors(this TypeInfo typeInfo, BindingFlags bindingFlags)

Gets the constructors.

public static EventInfo GetEvent(this TypeInfo typeInfo, string name, BindingFlags bindingFlags)

Gets the event with the specified name.

public static EventInfo[] GetEvents(this TypeInfo typeInfo, BindingFlags bindingFlags)

Gets the events.

public static FieldInfo GetField(this TypeInfo typeInfo, string name, BindingFlags bindingFlags)

Gets the field with the specified name.

public static FieldInfo[] GetFields(this TypeInfo typeInfo, BindingFlags bindingFlags)

Gets the fields.

public static MethodInfo GetMethod(this TypeInfo typeInfo, string name, BindingFlags bindingFlags)

Gets the method with the specified name.

public static MethodInfo GetMethod(this TypeInfo typeInfo, string name, Type[] types, BindingFlags bindingFlags)

Gets the method with the specified name and types.

public static MethodInfo[] GetMethods(this TypeInfo typeInfo, BindingFlags bindingFlags)

Gets the methods.

public static PropertyInfo[] GetProperties(this TypeInfo typeInfo, BindingFlags bindingFlags)

Gets the properties.

public static PropertyInfo GetProperty(this TypeInfo typeInfo, string name, BindingFlags bindingFlags)

Gets the property with the specified name.