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