14 references to ReflectionHelpers
Microsoft.Extensions.AI.Abstractions (14)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (13)
119
if (!
ReflectionHelpers
.IsBuiltInConverter(effectiveConverter))
262
ReflectionHelpers
.ResolveJsonConstructorParameterMapper(typeInfo.Type, typeInfo);
276
ICustomAttributeProvider? attributeProvider =
ReflectionHelpers
.ResolveAttributeProvider(typeInfo.Type, property);
282
NullabilityInfo nullabilityInfo =
ReflectionHelpers
.GetMemberNullability(state.NullabilityInfoContext, memberInfo);
346
Type elementType =
ReflectionHelpers
.GetElementType(typeInfo);
397
Type valueType =
ReflectionHelpers
.GetElementType(typeInfo);
465
return
ReflectionHelpers
.CanBeNull(typeInfo.Type) &&
679
Debug.Assert(converter is null ||
ReflectionHelpers
.IsBuiltInConverter(converter), "If specified the converter must be built-in.");
686
return
ReflectionHelpers
.GetElementConverter(converter);
711
isNonNullable =
ReflectionHelpers
.GetParameterNullability(nullabilityInfoContext, parameter) is NullabilityState.NotNull;
716
object? defaultVal =
ReflectionHelpers
.GetNormalizedDefaultValue(parameter);
732
Debug.Assert(typeInfo.Type.IsEnum &&
ReflectionHelpers
.IsBuiltInConverter(converter), "must be using a built-in enum converter.");
739
ReflectionHelpers
.GetEnumConverterConfig(converter, out JsonNamingPolicy? namingPolicy, out bool allowString);
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
131
string? memberName =
ReflectionHelpers
.GetMemberName(propertyInfo);