13 references to ReflectionHelpers
Shared (13)
JsonSchemaExporter\JsonSchemaExporter.cs (12)
119if (!ReflectionHelpers.IsBuiltInConverter(effectiveConverter)) 262ReflectionHelpers.ResolveJsonConstructorParameterMapper(typeInfo.Type, typeInfo); 276ICustomAttributeProvider? attributeProvider = ReflectionHelpers.ResolveAttributeProvider(typeInfo.Type, property); 282NullabilityInfo nullabilityInfo = ReflectionHelpers.GetMemberNullability(state.NullabilityInfoContext, memberInfo); 346Type elementType = ReflectionHelpers.GetElementType(typeInfo); 397Type valueType = ReflectionHelpers.GetElementType(typeInfo); 683Debug.Assert(converter is null || ReflectionHelpers.IsBuiltInConverter(converter), "If specified the converter must be built-in."); 690return ReflectionHelpers.GetElementConverter(converter); 715isNonNullable = ReflectionHelpers.GetParameterNullability(nullabilityInfoContext, parameter) is NullabilityState.NotNull; 720object? defaultVal = ReflectionHelpers.GetNormalizedDefaultValue(parameter); 736Debug.Assert(typeInfo.Type.IsEnum && ReflectionHelpers.IsBuiltInConverter(converter), "must be using a built-in enum converter."); 743ReflectionHelpers.GetEnumConverterConfig(converter, out JsonNamingPolicy? namingPolicy, out bool allowString);
JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
129string? memberName = ReflectionHelpers.GetMemberName(propertyInfo);