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