51 references to SpecifiedAccessor
System.Private.Xml (51)
System\Xml\Serialization\Mappings.cs (2)
897private SpecifiedAccessor _checkSpecified; 927internal SpecifiedAccessor CheckSpecified
System\Xml\Serialization\Models.cs (10)
268private readonly SpecifiedAccessor _checkSpecified = SpecifiedAccessor.None; 288_checkSpecified = checkSpecified ? SpecifiedAccessor.ReadWrite : SpecifiedAccessor.None; 310_checkSpecified = specifiedField.IsInitOnly ? SpecifiedAccessor.ReadOnly : SpecifiedAccessor.ReadWrite; 320_checkSpecified = specifiedProperty.CanWrite ? SpecifiedAccessor.ReadWrite : SpecifiedAccessor.ReadOnly; 323if (_checkSpecified != SpecifiedAccessor.None && specifiedProperty.PropertyType != typeof(bool)) 360internal SpecifiedAccessor CheckSpecified
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (4)
162if (mapping.CheckSpecified == SpecifiedAccessor.ReadWrite) 357if (mapping.CheckSpecified == SpecifiedAccessor.ReadWrite) 1685if (member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite) 1952if (member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
581if (m.CheckSpecified != SpecifiedAccessor.None) 613if (m.CheckSpecified != SpecifiedAccessor.None) 1219if (member.CheckSpecified != SpecifiedAccessor.None) 1250if (member.CheckSpecified != SpecifiedAccessor.None)
System\Xml\Serialization\XmlMemberMapping.cs (1)
95get { return _mapping.CheckSpecified != SpecifiedAccessor.None; }
System\Xml\Serialization\XmlSchemaExporter.cs (2)
1060bool valueTypeOptional = member.CheckSpecified != SpecifiedAccessor.None || member.CheckShouldPersist; 1118ExportAttributeAccessor(type, members[i].Attribute, members[i].CheckSpecified != SpecifiedAccessor.None || members[i].CheckShouldPersist, ns);
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1457member.CheckSpecified = SpecifiedAccessor.ReadWrite; 1483member.CheckSpecified = SpecifiedAccessor.ReadWrite;
System\Xml\Serialization\XmlSerializationReader.cs (8)
2520if (mapping.CheckSpecified == SpecifiedAccessor.ReadWrite) 2700if (mapping.CheckSpecified == SpecifiedAccessor.ReadWrite) 3322if (mapping.CheckSpecified == SpecifiedAccessor.ReadWrite) 3459if (mapping.CheckSpecified == SpecifiedAccessor.ReadWrite) 3540if (member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite && member.CheckSpecifiedSource != null && member.CheckSpecifiedSource.Length > 0) 3850if (member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite && member.CheckSpecifiedSource != null && member.CheckSpecifiedSource.Length > 0) 4161WriteElement(anyElement.ArraySource, anyElement.ArrayName, anyElement.ChoiceArraySource, element, anyElement.Mapping.ChoiceIdentifier, anyElement.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite ? anyElement.CheckSpecifiedSource : null, false, false, -1, i); 4314WriteElement(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);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (5)
447if (mapping.CheckSpecified == SpecifiedAccessor.ReadWrite) 1546if (mapping.CheckSpecified == SpecifiedAccessor.ReadWrite) 2111if (member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite && member.CheckSpecifiedSource != null && member.CheckSpecifiedSource.Length > 0) 2429WriteElement(anyElement.ArraySource, anyElement.ArrayName, anyElement.ChoiceArraySource, element, anyElement.Mapping.ChoiceIdentifier, anyElement.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite ? anyElement.CheckSpecifiedSource : null, false, false, -1, i); 2533WriteElement(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);
System\Xml\Serialization\XmlSerializationWriter.cs (7)
1709if (member.CheckSpecified != SpecifiedAccessor.None) 2657if (member.CheckSpecified != SpecifiedAccessor.None) 2710if (member.CheckSpecified != SpecifiedAccessor.None) 3199if (m.CheckSpecified != SpecifiedAccessor.None) 3210if (m.CheckSpecified != SpecifiedAccessor.None) 3240if (m.CheckSpecified != SpecifiedAccessor.None) 3258if (m.CheckSpecified != SpecifiedAccessor.None)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (6)
415if (member.CheckSpecified != SpecifiedAccessor.None) 470if (member.CheckSpecified != SpecifiedAccessor.None) 1080if (m.CheckSpecified != SpecifiedAccessor.None) 1088if (m.CheckSpecified != SpecifiedAccessor.None) 1113if (m.CheckSpecified != SpecifiedAccessor.None) 1129if (m.CheckSpecified != SpecifiedAccessor.None)