18 references to IsOptionalValue
System.Xml (18)
System\Xml\Serialization\SoapReflectionImporter.cs (2)
214
if (model.TypeDesc.
IsOptionalValue
) {
384
if (!member.TypeDesc.IsPrimitive && !member.TypeDesc.IsEnum && !member.TypeDesc.
IsOptionalValue
) {
System\Xml\Serialization\Types.cs (1)
317
if (
IsOptionalValue
)
System\Xml\Serialization\XmlReflectionImporter.cs (12)
251
if (root.IsNullableSpecified && !root.IsNullable && model.TypeDesc.
IsOptionalValue
)
254
element.IsNullable = root.IsNullableSpecified ? root.IsNullable : model.TypeDesc.IsNullable || model.TypeDesc.
IsOptionalValue
;
258
element.IsNullable = model.TypeDesc.IsNullable || model.TypeDesc.
IsOptionalValue
;
389
if (model.TypeDesc.
IsOptionalValue
) {
1309
arrayItemElement.IsNullable = xmlArrayItem.IsNullableSpecified ? xmlArrayItem.IsNullable : targetTypeDesc.IsNullable || targetTypeDesc.
IsOptionalValue
;
1436
if (xmlElement.IsNullableSpecified && !xmlElement.IsNullable && typeModel.TypeDesc.
IsOptionalValue
)
1439
element.IsNullable = xmlElement.IsNullableSpecified ? xmlElement.IsNullable : typeModel.TypeDesc.
IsOptionalValue
;
1590
if (xmlElement.IsNullableSpecified && !xmlElement.IsNullable && typeModel.TypeDesc.
IsOptionalValue
)
1593
element.IsNullable = xmlElement.IsNullableSpecified ? xmlElement.IsNullable : typeModel.TypeDesc.
IsOptionalValue
;
1647
if (xmlElement.IsNullableSpecified && !xmlElement.IsNullable && typeModel.TypeDesc.
IsOptionalValue
)
1650
element.IsNullable = xmlElement.IsNullableSpecified ? xmlElement.IsNullable : typeModel.TypeDesc.
IsOptionalValue
;
1889
xmlElement.IsNullable = typeDesc.
IsOptionalValue
;
System\Xml\Serialization\XmlSerializationReader.cs (1)
2478
if (mappings[i].TypeDesc.
IsOptionalValue
&& mappings[i].TypeDesc.BaseTypeDesc.UseReflection) {
System\Xml\Serialization\XmlSerializationWriter.cs (1)
2513
if (!elements[0].Any && !elements[0].Mapping.TypeDesc.UseReflection && !elements[0].Mapping.TypeDesc.
IsOptionalValue
)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
1522
if (!elements[0].Any && !elements[0].Mapping.TypeDesc.
IsOptionalValue
)