34 references to IsNullable
dotnet-svcutil-lib (34)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
694bool sameNullable = arrayElement.IsNullable == elementMapping.TypeDesc.IsNullable;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (4)
281element.IsNullable = root.IsNullableSpecified ? root.IsNullable : model.TypeDesc.IsNullable || model.TypeDesc.IsOptionalValue; 285element.IsNullable = model.TypeDesc.IsNullable || model.TypeDesc.IsOptionalValue; 1506arrayItemElement.IsNullable = xmlArrayItem.IsNullableSpecified ? xmlArrayItem.IsNullable : targetTypeDesc.IsNullable || targetTypeDesc.IsOptionalValue; 2222if (isNullable && !typeDesc.IsNullable) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidIsNullable, typeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (3)
152accessor.IsNullable = typeMapping.TypeDesc.IsNullable; 1002if (item.IsNullable != item.Mapping.TypeDesc.IsNullable) 1356if (arrayMapping.TypeDesc.IsNullable)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (13)
2261if (derived.TypeDesc.IsNullable) 2363if (mapping.TypeDesc.IsNullable) 2367if (mapping.TypeDesc.IsNullable) 2561if (memberTypeDesc.IsNullable) 2709if (memberTypeDesc.IsNullable) 2753WriteElements(source, choiceSource, elements, text, choice, "a", writeAccessors, memberTypeDesc.IsNullable); 2764if (arrayTypeDesc.IsNullable) 2788if (arrayTypeDesc.IsNullable) 2887WriteElements(arrayName + "i", choiceName + "i", elements, text, choice, arrayName + "a", true, arrayElementTypeDesc.IsNullable); 2891WriteElements(RaCodeGen.GetStringForArrayMember(arrayName, "i" + arrayName, arrayTypeDesc), elements, text, choice, arrayName + "a", true, arrayElementTypeDesc.IsNullable); 3236if (mapping.TypeDesc.IsNullable) 3294if (mapping.TypeDesc.IsNullable) 3390if (mapping.TypeDesc.IsNullable)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (13)
786if (derived.TypeDesc.IsNullable) 964if (mapping.TypeDesc.IsNullable) 976if (mapping.TypeDesc.IsNullable) 1218if (memberTypeDesc.IsNullable) 1426if (memberTypeDesc.IsNullable) 1492WriteElements(source, choiceSource, elements, text, choice, "a" + memberTypeDesc.Name, writeAccessors, memberTypeDesc.IsNullable); 1503if (arrayTypeDesc.IsNullable) 1550if (arrayTypeDesc.IsNullable) 1638WriteElements(new SourceInfo(arrayNamePlusI, null, null, arrayElementTypeDesc.Type, ilg), choiceName + "i", elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable); 1642WriteElements(new SourceInfo(RaCodeGen.GetStringForArrayMember(arrayName, iPlusArrayName, arrayTypeDesc), null, null, arrayElementTypeDesc.Type, ilg), null, elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable); 2063if (mapping.TypeDesc.IsNullable) 2079if (mapping.TypeDesc.IsNullable) 2121if (mapping.TypeDesc.IsNullable)