52 references to IntEnum
Shared.Tests (52)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (2)
88if (type == typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum)) 92if (type == typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.IntEnum.g.cs (9)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>? _IntEnum; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum> IntEnum 24get => _IntEnum ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum> Create_IntEnum(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum> jsonTypeInfo)) 31jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>(options, global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.GetEnumConverter<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>(options));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.NullableIntEnum.g.cs (9)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?>? _NullableIntEnum; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?> NullableIntEnum 24get => _NullableIntEnum ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?> Create_NullableIntEnum(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?> jsonTypeInfo)) 31global::System.Text.Json.Serialization.JsonConverter converter = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.GetNullableConverter<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>(options); 32jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?>(options, converter);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.PocoWithEnums.g.cs (16)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithEnums(){ IntEnum = (global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum)args[0], StringEnum = (global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.StringEnum)args[1] }, 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum> 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithEnums).GetProperty("IntEnum", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>(options, info0); 93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum> 99Converter = (global::System.Text.Json.Serialization.JsonConverter<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>)ExpandConverter(typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum), new global::System.Text.Json.Serialization.JsonStringEnumConverter<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>(), options), 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithEnums).GetProperty("IntEnumUsingStringConverter", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>(options, info2); 113var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?> 119Converter = GetConverterForNullableProperty<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>(new global::System.Text.Json.Serialization.JsonStringEnumConverter<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum>(), options), 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithEnums).GetProperty("NullableIntEnumUsingStringConverter", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?), global::System.Array.Empty<global::System.Type>(), null), 131properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum?>(options, info3); 181ParameterType = typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.IntEnum),
JsonSchemaExporter\TestTypes.cs (16)
109yield return new TestData<IntEnum>(IntEnum.A, """{"type":"integer"}"""); 119yield return new TestData<IntEnum?>(IntEnum.A, """{"type":["integer","null"]}"""); 423IntEnum = IntEnum.A, 425IntEnumUsingStringConverter = IntEnum.A, 426NullableIntEnumUsingStringConverter = IntEnum.B, 433IntEnum = (IntEnum)int.MaxValue, 435IntEnumUsingStringConverter = IntEnum.A, 997public IntEnum IntEnum { get; init; } 1000[JsonConverter(typeof(JsonStringEnumConverter<IntEnum>))] 1001public IntEnum IntEnumUsingStringConverter { get; set; } 1003[JsonConverter(typeof(JsonStringEnumConverter<IntEnum>))] 1004public IntEnum? NullableIntEnumUsingStringConverter { get; set; } 1252[JsonSerializable(typeof(IntEnum))] 1261[JsonSerializable(typeof(IntEnum?))]