ReflectionExtensions
Provides extension methods for reflection.
Gets the type of the array item.
Gets the generic type arguments of a type.
Checks whether the given type inherits from the given type name.
Checks whether the given type is assignable to the given type name.
public static T TryGetByObjectType<T>(this IEnumerable<T> attributes, string typeName, TypeNameStyle typeNameStyle = 1)
Tries to get the first object of the given type name.
public static T TryGetIfAssignableTo<T>(this IEnumerable<T> attributes, string typeName, TypeNameStyle typeNameStyle = 1)
Tries to get the first object which is assignable to the given type name.