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