5 writes to Constants
System.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
547
mapping.
Constants
= (ConstantMapping[])constants.ToArray(typeof(ConstantMapping));
System\Xml\Serialization\SoapSchemaImporter.cs (1)
580
enumMapping.
Constants
= (ConstantMapping[])constants.ToArray(typeof(ConstantMapping));
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1067
mapping.
Constants
= (ConstantMapping[])constants.ToArray(typeof(ConstantMapping));
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1633
enumMapping.
Constants
= (ConstantMapping[])constants.ToArray(typeof(ConstantMapping));
1674
enumMapping.
Constants
= (ConstantMapping[])constants.ToArray(typeof(ConstantMapping));
37 references to Constants
System.Xml (37)
System\Xml\Serialization\CodeExporter.cs (3)
218
if (mapping.IsFlags && mapping.
Constants
.Length > 31) {
223
for (int i = 0; i < mapping.
Constants
.Length; i++) {
224
ExportConstant(codeClass, mapping.
Constants
[i], type, mapping.IsFlags, 1L << i);
System\Xml\Serialization\SoapSchemaExporter.cs (2)
362
for (int i = 0; i < mapping.
Constants
.Length; i++) {
363
ConstantMapping constant = mapping.
Constants
[i];
System\Xml\Serialization\SoapSchemaImporter.cs (1)
581
if (isList && enumMapping.
Constants
.Length > 63) {
System\Xml\Serialization\XmlCodeExporter.cs (1)
321
ConstantMapping[] c = em.
Constants
;
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1734
for (int j = 0; j < choiceMapping.
Constants
.Length; j++) {
1735
string xmlName = choiceMapping.
Constants
[j].XmlName;
1740
accessor.ChoiceIdentifier.MemberIds[i] = choiceMapping.
Constants
[j].Name;
1752
accessor.ChoiceIdentifier.MemberIds[i] = choiceMapping.
Constants
[j].Name;
1844
for (int i = 0; i < choiceMapping.
Constants
.Length; i++) {
1845
string choiceId = choiceMapping.
Constants
[i].XmlName;
1854
ids.Add(choiceName, choiceNs, choiceMapping.
Constants
[i]);
System\Xml\Serialization\XmlSchemaExporter.cs (3)
790
ConstantMapping[] c = em.
Constants
;
1020
for (int i = 0; i < mapping.
Constants
.Length; i++) {
1021
ConstantMapping constant = mapping.
Constants
[i];
System\Xml\Serialization\XmlSchemaImporter.cs (2)
828
ConstantMapping[] constants = ((EnumMapping)member.ChoiceIdentifier.Mapping).
Constants
;
1634
if (isList && enumMapping.
Constants
.Length > 63) {
System\Xml\Serialization\XmlSerializationReader.cs (2)
2746
ConstantMapping[] constants = mapping.
Constants
;
2811
ConstantMapping[] constants = mapping.
Constants
;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
1010
ConstantMapping[] constants = mapping.
Constants
;
1068
ConstantMapping[] constants = mapping.
Constants
;
System\Xml\Serialization\XmlSerializationWriter.cs (7)
1851
ConstantMapping[] constants = mapping.
Constants
;
3192
for (int i = 0; i < choiceMapping.
Constants
.Length; i++) {
3193
string xmlName = choiceMapping.
Constants
[i].XmlName;
3198
enumValue = choiceMapping.
Constants
[i].Value.ToString(CultureInfo.InvariantCulture);
3200
enumValue = choiceMapping.
Constants
[i].Name;
3212
enumValue = choiceMapping.
Constants
[i].Value.ToString(CultureInfo.InvariantCulture);
3214
enumValue = choiceMapping.
Constants
[i].Name;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (7)
570
ConstantMapping[] constants = mapping.
Constants
;
2175
for (int i = 0; i < choiceMapping.
Constants
.Length; i++) {
2176
string xmlName = choiceMapping.
Constants
[i].XmlName;
2180
enumValue = choiceMapping.
Constants
[i].Name;
2181
eValue = Enum.ToObject(choiceMapping.TypeDesc.Type, choiceMapping.
Constants
[i].Value);
2192
enumValue = choiceMapping.
Constants
[i].Name;
2193
eValue = Enum.ToObject(choiceMapping.TypeDesc.Type, choiceMapping.
Constants
[i].Value);