19 references to IsOptionalValue
System.Private.Xml (19)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
305if (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)
360if (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) 1524arrayItemElement.IsNullable = xmlArrayItem.GetIsNullableSpecified() ? xmlArrayItem.IsNullable : targetTypeDesc.IsNullable || targetTypeDesc.IsOptionalValue; 1679if (xmlElement.GetIsNullableSpecified() && !xmlElement.IsNullable && typeModel.TypeDesc.IsOptionalValue) 1682element.IsNullable = xmlElement.GetIsNullableSpecified() ? xmlElement.IsNullable : typeModel.TypeDesc.IsOptionalValue; 1852if (xmlElement.GetIsNullableSpecified() && !xmlElement.IsNullable && typeModel.TypeDesc.IsOptionalValue) 1855element.IsNullable = xmlElement.GetIsNullableSpecified() ? xmlElement.IsNullable : typeModel.TypeDesc.IsOptionalValue; 1920if (xmlElement.GetIsNullableSpecified() && !xmlElement.IsNullable && typeModel.TypeDesc.IsOptionalValue) 1923element.IsNullable = xmlElement.GetIsNullableSpecified() ? xmlElement.IsNullable : typeModel.TypeDesc.IsOptionalValue; 2201xmlElement.IsNullable = typeDesc.IsOptionalValue;
System\Xml\Serialization\XmlSerializationReader.cs (1)
2699if (mappings[i].TypeDesc!.IsOptionalValue && mappings[i].TypeDesc!.BaseTypeDesc!.UseReflection)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3713if (!elements[0].Any && !elements[0].Mapping!.TypeDesc!.UseReflection && !elements[0].Mapping!.TypeDesc!.IsOptionalValue)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
1613if (!elements[0].Any && !elements[0].Mapping!.TypeDesc!.IsOptionalValue)