19 references to IsOptionalValue
System.Private.Xml (19)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
297if (mappings[i].TypeDesc!.IsOptionalValue && mappings[i].TypeDesc!.BaseTypeDesc!.UseReflection)
System\Xml\Serialization\SoapReflectionImporter.cs (2)
200if (model.TypeDesc.IsOptionalValue) 398if (!member.TypeDesc!.IsPrimitive && !member.TypeDesc.IsEnum && !member.TypeDesc.IsOptionalValue)
System\Xml\Serialization\Types.cs (1)
359if (IsOptionalValue)
System\Xml\Serialization\XmlReflectionImporter.cs (12)
284if (root.GetIsNullableSpecified() && !root.IsNullable && model.TypeDesc.IsOptionalValue) 287element.IsNullable = root.GetIsNullableSpecified() ? root.IsNullable : model.TypeDesc.IsNullable || model.TypeDesc.IsOptionalValue; 291element.IsNullable = model.TypeDesc.IsNullable || model.TypeDesc.IsOptionalValue; 445if (model.TypeDesc.IsOptionalValue) 1518arrayItemElement.IsNullable = xmlArrayItem.GetIsNullableSpecified() ? xmlArrayItem.IsNullable : targetTypeDesc.IsNullable || targetTypeDesc.IsOptionalValue; 1659if (xmlElement.GetIsNullableSpecified() && !xmlElement.IsNullable && typeModel.TypeDesc.IsOptionalValue) 1662element.IsNullable = xmlElement.GetIsNullableSpecified() ? xmlElement.IsNullable : typeModel.TypeDesc.IsOptionalValue; 1832if (xmlElement.GetIsNullableSpecified() && !xmlElement.IsNullable && typeModel.TypeDesc.IsOptionalValue) 1835element.IsNullable = xmlElement.GetIsNullableSpecified() ? xmlElement.IsNullable : typeModel.TypeDesc.IsOptionalValue; 1900if (xmlElement.GetIsNullableSpecified() && !xmlElement.IsNullable && typeModel.TypeDesc.IsOptionalValue) 1903element.IsNullable = xmlElement.GetIsNullableSpecified() ? xmlElement.IsNullable : typeModel.TypeDesc.IsOptionalValue; 2181xmlElement.IsNullable = typeDesc.IsOptionalValue;
System\Xml\Serialization\XmlSerializationReader.cs (1)
2638if (mappings[i].TypeDesc!.IsOptionalValue && mappings[i].TypeDesc!.BaseTypeDesc!.UseReflection)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3648if (!elements[0].Any && !elements[0].Mapping!.TypeDesc!.UseReflection && !elements[0].Mapping!.TypeDesc!.IsOptionalValue)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
1570if (!elements[0].Any && !elements[0].Mapping!.TypeDesc!.IsOptionalValue)