4 writes to Constants
System.Private.Xml (4)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
585mapping.Constants = constants.ToArray();
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1224mapping.Constants = constants.ToArray();
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1773enumMapping.Constants = (ConstantMapping[])constants.ToArray(typeof(ConstantMapping)); 1821enumMapping.Constants = (ConstantMapping[])constants.ToArray(typeof(ConstantMapping));
33 references to Constants
System.Private.Xml (33)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
1274foreach (ConstantMapping c in mapping.Constants!) 1289ConstantMapping[] constants = mapping.Constants!;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
693ConstantMapping[] constants = mapping.Constants!;
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1993for (int j = 0; j < choiceMapping.Constants!.Length; j++) 1995string xmlName = choiceMapping.Constants[j].XmlName; 2002accessor.ChoiceIdentifier.MemberIds[i] = choiceMapping.Constants[j].Name; 2016accessor.ChoiceIdentifier.MemberIds[i] = choiceMapping.Constants[j].Name; 2128for (int i = 0; i < choiceMapping.Constants!.Length; i++) 2130string choiceId = choiceMapping.Constants[i].XmlName; 2140ids.Add(choiceName, choiceNs, choiceMapping.Constants[i]);
System\Xml\Serialization\XmlSchemaExporter.cs (3)
880ConstantMapping[] c = em.Constants!; 1158for (int i = 0; i < mapping.Constants!.Length; i++) 1160ConstantMapping constant = mapping.Constants[i];
System\Xml\Serialization\XmlSchemaImporter.cs (2)
847ConstantMapping[] constants = ((EnumMapping)member.ChoiceIdentifier.Mapping).Constants!; 1774if (isList && enumMapping.Constants.Length > 63)
System\Xml\Serialization\XmlSerializationReader.cs (2)
2929ConstantMapping[] constants = mapping.Constants!; 3000ConstantMapping[] constants = mapping.Constants!;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
982ConstantMapping[] constants = mapping.Constants!; 1041ConstantMapping[] constants = mapping.Constants!;
System\Xml\Serialization\XmlSerializationWriter.cs (7)
2883ConstantMapping[] constants = mapping.Constants!; 4449for (int i = 0; i < choiceMapping.Constants!.Length; i++) 4451string xmlName = choiceMapping.Constants[i].XmlName; 4458enumValue = choiceMapping.Constants[i].Value.ToString(CultureInfo.InvariantCulture); 4460enumValue = choiceMapping.Constants[i].Name; 4474enumValue = choiceMapping.Constants[i].Value.ToString(CultureInfo.InvariantCulture); 4476enumValue = choiceMapping.Constants[i].Name;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (7)
614ConstantMapping[] constants = mapping.Constants!; 2244for (int i = 0; i < choiceMapping.Constants!.Length; i++) 2246string xmlName = choiceMapping.Constants[i].XmlName; 2252enumValue = choiceMapping.Constants[i].Name; 2253eValue = Enum.ToObject(choiceMapping.TypeDesc!.Type!, choiceMapping.Constants[i].Value); 2266enumValue = choiceMapping.Constants[i].Name; 2267eValue = Enum.ToObject(choiceMapping.TypeDesc!.Type!, choiceMapping.Constants[i].Value);