17 references to IsOptionalValue
dotnet-svcutil-lib (17)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (2)
233
if (model.TypeDesc.
IsOptionalValue
)
427
if (!member.TypeDesc.IsPrimitive && !member.TypeDesc.IsEnum && !member.TypeDesc.
IsOptionalValue
)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
367
if (
IsOptionalValue
)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (12)
278
if (root.IsNullableSpecified && !root.IsNullable && model.TypeDesc.
IsOptionalValue
)
281
element.IsNullable = root.IsNullableSpecified ? root.IsNullable : model.TypeDesc.IsNullable || model.TypeDesc.
IsOptionalValue
;
285
element.IsNullable = model.TypeDesc.IsNullable || model.TypeDesc.
IsOptionalValue
;
436
if (model.TypeDesc.
IsOptionalValue
)
1506
arrayItemElement.IsNullable = xmlArrayItem.IsNullableSpecified ? xmlArrayItem.IsNullable : targetTypeDesc.IsNullable || targetTypeDesc.
IsOptionalValue
;
1646
if (xmlElement.IsNullableSpecified && !xmlElement.IsNullable && typeModel.TypeDesc.
IsOptionalValue
)
1649
element.IsNullable = xmlElement.IsNullableSpecified ? xmlElement.IsNullable : typeModel.TypeDesc.
IsOptionalValue
;
1821
if (xmlElement.IsNullableSpecified && !xmlElement.IsNullable && typeModel.TypeDesc.
IsOptionalValue
)
1824
element.IsNullable = xmlElement.IsNullableSpecified ? xmlElement.IsNullable : typeModel.TypeDesc.
IsOptionalValue
;
1889
if (xmlElement.IsNullableSpecified && !xmlElement.IsNullable && typeModel.TypeDesc.
IsOptionalValue
)
1892
element.IsNullable = xmlElement.IsNullableSpecified ? xmlElement.IsNullable : typeModel.TypeDesc.
IsOptionalValue
;
2170
xmlElement.IsNullable = typeDesc.
IsOptionalValue
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
2909
if (!elements[0].Any && !elements[0].Mapping.TypeDesc.UseReflection && !elements[0].Mapping.TypeDesc.
IsOptionalValue
)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
1654
if (!elements[0].Any && !elements[0].Mapping.TypeDesc.
IsOptionalValue
)