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