<PackageReference Include="System.Text.Json" Version="11.0.0-preview.1.26104.118" />

System.Text.Json.Reflection.ReflectionExtensions

static class ReflectionExtensions
namespace System.Text.Json.Reflection { internal static class ReflectionExtensions { public const string CreateRangeMethodName = "CreateRange"; public static Type GetCompatibleGenericBaseClass(this Type type, Type baseType); public static Type GetCompatibleGenericInterface(this Type type, Type interfaceType); public static bool IsImmutableDictionaryType(this Type type); public static bool IsImmutableEnumerableType(this Type type); public static string GetImmutableDictionaryConstructingTypeName(this Type type); public static string GetImmutableEnumerableConstructingTypeName(this Type type); public static bool IsVirtual(this PropertyInfo propertyInfo); public static bool IsKeyValuePair(this Type type); public static bool TryGetDeserializationConstructor(this Type type, bool useDefaultCtorInAnnotatedStructs, out ConstructorInfo deserializationCtor); public static object GetDefaultValue(this ParameterInfo parameterInfo); public static Type[] GetSortedTypeHierarchy(this Type type); public static bool IsNullableOfT(this Type type); public static bool IsNullableType(this Type type); public static bool IsAssignableFromInternal(this Type type, Type from); public static bool IsInSubtypeRelationshipWith(this Type type, Type other); public static bool HasRequiredMemberAttribute(this MemberInfo memberInfo); public static bool HasSetsRequiredMembersAttribute(this MemberInfo memberInfo); public static TAttribute GetUniqueCustomAttribute<TAttribute>(this MemberInfo memberInfo, bool inherit) where TAttribute : Attribute; public static object CreateInstanceNoWrapExceptions(this Type type, Type[] parameterTypes, object[] parameters); public static ParameterInfo GetGenericParameterDefinition(this ParameterInfo parameter); public static MemberInfo GetGenericMemberDefinition(this MemberInfo member); } }