<PackageReference Include="System.Text.Json" Version="8.0.0-preview.3.23174.8" />

ReflectionExtensions

static class ReflectionExtensions
public static object CreateInstanceNoWrapExceptions(this Type type, Type[] parameterTypes, object[] parameters)

public static Type GetCompatibleGenericBaseClass(this Type type, Type baseType, bool sourceGenType = false)

public static Type GetCompatibleGenericInterface(this Type type, Type interfaceType)

public static object GetDefaultValue(this ParameterInfo parameterInfo)

public static string GetImmutableDictionaryConstructingTypeName(this Type type, bool sourceGenType = false)

public static string GetImmutableEnumerableConstructingTypeName(this Type type, bool sourceGenType = false)

public static Type[] GetSortedTypeHierarchy(this Type type)

public static TAttribute GetUniqueCustomAttribute<TAttribute>(this MemberInfo memberInfo, bool inherit) where TAttribute : Attribute

public static bool HasRequiredMemberAttribute(this ICustomAttributeProvider memberInfo)

public static bool HasSetsRequiredMembersAttribute(this ICustomAttributeProvider memberInfo)

public static bool IsAssignableFromInternal(this Type type, Type from)

public static bool IsImmutableDictionaryType(this Type type, bool sourceGenType = false)

public static bool IsImmutableEnumerableType(this Type type, bool sourceGenType = false)

public static bool IsInSubtypeRelationshipWith(this Type type, Type other)

public static bool IsKeyValuePair(this Type type, Type keyValuePairType = null)

public static bool IsNullableOfT(this Type type)

public static bool IsVirtual(this PropertyInfo propertyInfo)

public static bool TryGetDeserializationConstructor(this Type type, bool useDefaultCtorInAnnotatedStructs, out ConstructorInfo deserializationCtor)