14 references to ReflectionHelpers
Microsoft.Extensions.AI.Abstractions (14)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (13)
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); 465return ReflectionHelpers.CanBeNull(typeInfo.Type) && 679Debug.Assert(converter is null || ReflectionHelpers.IsBuiltInConverter(converter), "If specified the converter must be built-in."); 686return ReflectionHelpers.GetElementConverter(converter); 711isNonNullable = ReflectionHelpers.GetParameterNullability(nullabilityInfoContext, parameter) is NullabilityState.NotNull; 716object? defaultVal = ReflectionHelpers.GetNormalizedDefaultValue(parameter); 732Debug.Assert(typeInfo.Type.IsEnum && ReflectionHelpers.IsBuiltInConverter(converter), "must be using a built-in enum converter."); 739ReflectionHelpers.GetEnumConverterConfig(converter, out JsonNamingPolicy? namingPolicy, out bool allowString);
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
131string? memberName = ReflectionHelpers.GetMemberName(propertyInfo);