23 writes to IsNullable
dotnet-svcutil-lib (23)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (2)
689member.Elements[0].IsNullable = false; 749element.IsNullable = a.SoapElement.IsNullable;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (7)
71accessor.IsNullable = true; 97accessor.IsNullable = false; 159accessor.IsNullable = false; 183accessor.IsNullable = element.IsNillable; 439arrayAccessor.IsNullable = false; 457itemAccessor.IsNullable = true; 518itemAccessor.IsNullable = true;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (10)
281element.IsNullable = root.IsNullableSpecified ? root.IsNullable : model.TypeDesc.IsNullable || model.TypeDesc.IsOptionalValue; 285element.IsNullable = model.TypeDesc.IsNullable || model.TypeDesc.IsOptionalValue; 1387member.Elements[0].IsNullable = false; 1506arrayItemElement.IsNullable = xmlArrayItem.IsNullableSpecified ? xmlArrayItem.IsNullable : targetTypeDesc.IsNullable || targetTypeDesc.IsOptionalValue; 1649element.IsNullable = xmlElement.IsNullableSpecified ? xmlElement.IsNullable : typeModel.TypeDesc.IsOptionalValue; 1697element.IsNullable = false; 1736arrayElement.IsNullable = a.XmlArray.IsNullable; 1824element.IsNullable = xmlElement.IsNullableSpecified ? xmlElement.IsNullable : typeModel.TypeDesc.IsOptionalValue; 1892element.IsNullable = xmlElement.IsNullableSpecified ? xmlElement.IsNullable : typeModel.TypeDesc.IsOptionalValue; 1942element.IsNullable = false;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (4)
152accessor.IsNullable = typeMapping.TypeDesc.IsNullable; 293accessor.IsNullable = false; 359accessor.IsNullable = element.IsNillable; 1357arrayAccessor.IsNullable = element.IsNillable;
56 references to IsNullable
dotnet-svcutil-lib (56)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (3)
846return element.IsNullable && element.Mapping.TypeDesc.IsValueType; 878if (a[i].Name != b[i].Name || a[i].Namespace != b[i].Namespace || a[i].Form != b[i].Form || a[i].IsNullable != b[i].IsNullable)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (2)
232if (!sameName || mapping.TypeDesc.IsAmbiguousDataType || element.IsNullable) 234AddElementMetadata(metadata, sameName ? null : elemName, mapping.TypeDesc.IsAmbiguousDataType ? mapping.TypeDesc : null, element.IsNullable);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
300element.IsNillable = accessor.IsNullable || accessor.Mapping is NullableMapping;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (8)
204if ((object)(rootElement.IsNullable) != null) 206attribute.Arguments.Add(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression((bool)rootElement.IsNullable))); 694bool sameNullable = arrayElement.IsNullable == elementMapping.TypeDesc.IsNullable; 697ExportArrayItem(metadata, sameName ? null : elementName, sameElementNs ? null : arrayElement.Namespace, sameElementType ? null : elementMapping.TypeDesc, elementMapping.TypeDesc, arrayElement.IsNullable, defaultForm ? XmlSchemaForm.None : arrayElement.Form, nestingLevel); 759if (!sameName || !sameNs || element.IsNullable || !defaultForm || member.SequenceId != -1) 760ExportArray(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId); 775ExportElement(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, sameType ? null : mapping.TypeDesc, mapping.TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId); 791ExportElement(metadata, elemName, sameNs ? null : element.Namespace, ((TypeMapping)element.Mapping).TypeDesc, ((TypeMapping)element.Mapping).TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (8)
282CheckNullable(element.IsNullable, model.TypeDesc, element.Mapping); 1509CheckNullable(arrayItemElement.IsNullable, targetTypeDesc, arrayItemElement.Mapping); 1652CheckNullable(element.IsNullable, targetTypeDesc, element.Mapping); 1700CheckNullable(element.IsNullable, targetTypeDesc, element.Mapping); 1739CheckNullable(arrayElement.IsNullable, accessor.TypeDesc, arrayElement.Mapping); 1827CheckNullable(element.IsNullable, accessor.TypeDesc, element.Mapping); 1894CheckNullable(element.IsNullable, targetTypeDesc, element.Mapping); 1944CheckNullable(element.IsNullable, targetTypeDesc, element.Mapping);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (3)
268element.IsNillable = accessor.IsNullable; 856int minOccurs = repeats || accessor.HasDefault || (!accessor.IsNullable && !accessor.Mapping.TypeDesc.IsValueType) || valueTypeOptional ? 0 : 1; 862element.IsNillable = accessor.IsNullable;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (3)
893if (!nullableMismatch && existingElement.IsNullable != element.IsNullable) 1002if (item.IsNullable != item.Mapping.TypeDesc.IsNullable)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (15)
2094if (element.IsNullable) 2954if (isNullable && !element.IsNullable) 3028if (isNullable && !element.IsNullable) 3188if (element.IsNullable) 3218WriteValue(element.IsNullable); 3230if (element.IsNullable) 3288if (element.IsNullable) 3330WritePrimitive("WriteElementString", name, ns, element.Default, source, element.Mapping, false, true, element.IsNullable); 3337WriteQualifiedNameElement(name, ns, element.Default, source, element.IsNullable, mapping.IsSoap, mapping); 3342WritePrimitive(element.IsNullable ? ("WriteNullableString" + suffixNullable + suffixRaw) : ("WriteElementString" + suffixRaw), 3343name, ns, element.Default, source, mapping, mapping.IsSoap, true, element.IsNullable); 3368WriteValue(element.IsNullable); 3393WriteValue(element.IsNullable); 3409WriteElementCall("WriteSerializable", typeof(IXmlSerializable), source, name, ns, element.IsNullable, !element.Any); 3424WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.Any);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (13)
579if (element.IsNullable) 1697if (isNullable && !element.IsNullable) 1779if (isNullable && !element.IsNullable) 2038if (element.IsNullable) 2057if (element.IsNullable) 2073if (element.IsNullable) 2089WritePrimitive("WriteElementString", name, ns, element.Default, source, element.Mapping, false, true, element.IsNullable); 2095WriteQualifiedNameElement(name, ns, GetConvertedDefaultValue(source.Type, element.Default), source, element.IsNullable, mapping); 2099WritePrimitive(element.IsNullable ? ("WriteNullableStringLiteral" + suffixRaw) : ("WriteElementString" + suffixRaw), 2100name, ns, GetConvertedDefaultValue(source.Type, element.Default), source, mapping, false, true, element.IsNullable); 2123ilg.Ldc(element.IsNullable); 2144WriteElementCall("WriteSerializable", typeof(IXmlSerializable), source, name, ns, element.IsNullable, !element.Any); 2163WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.Any);