52 references to IsNullable
System.Xml (52)
System\Xml\Serialization\XmlCodeExporter.cs (1)
604
bool sameNullable = arrayElement.IsNullable == elementMapping.TypeDesc.
IsNullable
;
System\Xml\Serialization\XmlReflectionImporter.cs (4)
254
element.IsNullable = root.IsNullableSpecified ? root.IsNullable : model.TypeDesc.
IsNullable
|| model.TypeDesc.IsOptionalValue;
258
element.IsNullable = model.TypeDesc.
IsNullable
|| model.TypeDesc.IsOptionalValue;
1309
arrayItemElement.IsNullable = xmlArrayItem.IsNullableSpecified ? xmlArrayItem.IsNullable : targetTypeDesc.
IsNullable
|| targetTypeDesc.IsOptionalValue;
1930
if (isNullable && !typeDesc.
IsNullable
) throw new InvalidOperationException(Res.GetString(Res.XmlInvalidIsNullable, typeDesc.FullName));
System\Xml\Serialization\XmlSchemaImporter.cs (3)
143
accessor.IsNullable = typeMapping.TypeDesc.
IsNullable
;
875
if (item.IsNullable != item.Mapping.TypeDesc.
IsNullable
)
1174
if (arrayMapping.TypeDesc.
IsNullable
)
System\Xml\Serialization\XmlSerializationReader.cs (9)
2882
if (derived.TypeDesc.
IsNullable
)
2991
element.IsNullable = nullableMapping.BaseMapping.TypeDesc.
IsNullable
;
3016
if (structMapping.TypeDesc.
IsNullable
)
3024
if (structMapping.TypeDesc.
IsNullable
)
3069
if (structMapping.TypeDesc.
IsNullable
)
3103
member.IsNullable = mapping.TypeDesc.
IsNullable
;
3672
if (member.IsList && !member.Mapping.ReadOnly && member.Mapping.TypeDesc.
IsNullable
) {
3982
WriteElement(member.ArraySource, member.ArrayName, member.ChoiceArraySource, e, choice, member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite ? member.CheckSpecifiedSource : null, member.IsList && member.Mapping.TypeDesc.
IsNullable
, member.Mapping.ReadOnly, member.FixupIndex, j);
4399
if (mapping.TypeDesc.
IsNullable
) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
1174
if (derived.TypeDesc.
IsNullable
) {
1338
element.IsNullable = nullableMapping.BaseMapping.TypeDesc.
IsNullable
;
1360
if (structMapping.TypeDesc.
IsNullable
) {
1402
if (structMapping.TypeDesc.
IsNullable
) {
1517
if (structMapping.TypeDesc.
IsNullable
) {
1577
member.IsNullable = mapping.TypeDesc.
IsNullable
;
2214
if (member.IsList && !member.Mapping.ReadOnly && member.Mapping.TypeDesc.
IsNullable
) {
2578
WriteElement(member.ArraySource, member.ArrayName, member.ChoiceArraySource, e, choice, member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite ? member.CheckSpecifiedSource : null, member.IsList && member.Mapping.TypeDesc.
IsNullable
, member.Mapping.ReadOnly, member.FixupIndex, j);
3184
if (mapping.TypeDesc.
IsNullable
) {
System\Xml\Serialization\XmlSerializationWriter.cs (13)
1950
if (derived.TypeDesc.
IsNullable
)
2044
if (mapping.TypeDesc.
IsNullable
)
2048
if (mapping.TypeDesc.
IsNullable
) {
2217
if (memberTypeDesc.
IsNullable
) {
2341
if (memberTypeDesc.
IsNullable
) {
2378
WriteElements(source, choiceSource, elements, text, choice, "a", writeAccessors, memberTypeDesc.
IsNullable
);
2388
if (arrayTypeDesc.
IsNullable
) {
2410
if (arrayTypeDesc.
IsNullable
) {
2495
WriteElements(arrayName + "i", choiceName + "i", elements, text, choice, arrayName + "a", true, arrayElementTypeDesc.
IsNullable
);
2498
WriteElements(RaCodeGen.GetStringForArrayMember(arrayName , "i" + arrayName, arrayTypeDesc), elements, text, choice, arrayName + "a", true, arrayElementTypeDesc.
IsNullable
);
2803
if (mapping.TypeDesc.
IsNullable
) {
2855
if (mapping.TypeDesc.
IsNullable
) {
2939
if (mapping.TypeDesc.
IsNullable
) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (13)
716
if (derived.TypeDesc.
IsNullable
) {
887
if (mapping.TypeDesc.
IsNullable
) {
898
if (mapping.TypeDesc.
IsNullable
) {
1118
if (memberTypeDesc.
IsNullable
) {
1314
if (memberTypeDesc.
IsNullable
) {
1370
WriteElements(source, choiceSource, elements, text, choice, "a" + memberTypeDesc.Name, writeAccessors, memberTypeDesc.
IsNullable
);
1380
if (arrayTypeDesc.
IsNullable
) {
1425
if (arrayTypeDesc.
IsNullable
) {
1509
WriteElements(new SourceInfo(arrayNamePlusI, null, null, arrayElementTypeDesc.Type, ilg), choiceName + "i", elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.
IsNullable
);
1512
WriteElements(new SourceInfo(RaCodeGen.GetStringForArrayMember(arrayName, iPlusArrayName, arrayTypeDesc), null, null, arrayElementTypeDesc.Type, ilg), null, elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.
IsNullable
);
1890
if (mapping.TypeDesc.
IsNullable
) {
1903
if (mapping.TypeDesc.
IsNullable
) {
1940
if (mapping.TypeDesc.
IsNullable
) {