15 references to UnionCases
System.Text.Json (15)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
341if (typeInfo.UnionCases is { Count: > 0 } unionCases)
System\Text\Json\Serialization\Attributes\JsonUnionAttribute.cs (1)
28/// contract customization to populate <see cref="Metadata.JsonTypeInfo.UnionCases"/>
System\Text\Json\Serialization\JsonTypeClassifierContext.cs (1)
68/// list mirrors <see cref="JsonTypeInfo.UnionCases"/> on the resolved
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (3)
88/// <see cref="JsonTypeInfo.UnionCases"/> in declaration order. Each ctor overload 100Debug.Assert(typeInfo.UnionCases.Count == 0, 105IList<JsonUnionCaseInfo> unionCases = typeInfo.UnionCases;
System\Text\Json\Serialization\Metadata\JsonMetadataServices.cs (1)
91typeInfo.UnionCases.Add(caseInfo);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (8)
550/// serializes as that value shape. Populated at configuration time from <see cref="UnionCases"/>. 563/// First nullable union case type, if any. Populated at configuration time from <see cref="UnionCases"/>. 1051UnionCases.Count > 0) 1053BuildUnionValueTypeMap(UnionCases, Options, this); 1066if (UnionCases.Count == 0) 1086foreach (JsonUnionCaseInfo unionCase in UnionCases) 1115Debug.Assert(UnionCases.Count > 0); 1119new List<JsonUnionCaseInfo>(UnionCases),