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