<PackageReference Include="NJsonSchema" Version="9.10.18" />

ReflectionExtensions

public static class ReflectionExtensions
public static Type FindCommonBaseType(this IEnumerable<Type> types)

public static Type GetEnumerableItemType(this Type type)

public static Type[] GetGenericTypeArguments(this Type type)

public static bool HasProperty(this object obj, string propertyName)

public static bool InheritsFrom(this Type type, string typeName, TypeNameStyle typeNameStyle)

public static bool IsAssignableTo(this Type type, string typeName, TypeNameStyle typeNameStyle)

public static T TryGetByObjectType<T>(this IEnumerable<T> attributes, string typeName, TypeNameStyle typeNameStyle = 1)

public static T TryGetIfAssignableTo<T>(this IEnumerable<T> attributes, string typeName, TypeNameStyle typeNameStyle = 1)

public static T TryGetPropertyValue<T>(this object obj, string propertyName, T defaultValue = null)