206 references to DictionaryGlobals
System.Private.DataContractSerialization (206)
System\Runtime\Serialization\Attributes.cs (11)
12
DictionaryGlobals
.IdLocalName,
13
DictionaryGlobals
.ArraySizeLocalName,
14
DictionaryGlobals
.RefLocalName,
15
DictionaryGlobals
.ClrTypeLocalName,
16
DictionaryGlobals
.ClrAssemblyLocalName,
17
DictionaryGlobals
.ISerializableFactoryTypeLocalName
22
DictionaryGlobals
.XsiNilLocalName,
23
DictionaryGlobals
.XsiTypeLocalName
46
switch (reader.IndexOfLocalName(s_serializationLocalNames,
DictionaryGlobals
.SerializationNamespace))
67
switch (reader.IndexOfLocalName(s_schemaInstanceLocalNames,
DictionaryGlobals
.SchemaInstanceNamespace))
76
if (!reader.IsNamespaceUri(
DictionaryGlobals
.XmlnsNamespace))
System\Runtime\Serialization\DataContract.cs (55)
276
if (object.ReferenceEquals(ns,
DictionaryGlobals
.SerializationNamespace) && !IsPrimitive)
735
dataContract = new SpecialTypeDataContract(type,
DictionaryGlobals
.ObjectLocalName,
DictionaryGlobals
.SchemaNamespace);
751
if (ns ==
DictionaryGlobals
.SchemaNamespace.Value)
753
if (
DictionaryGlobals
.BooleanLocalName.Value == name)
755
else if (
DictionaryGlobals
.SignedByteLocalName.Value == name)
757
else if (
DictionaryGlobals
.UnsignedByteLocalName.Value == name)
759
else if (
DictionaryGlobals
.ShortLocalName.Value == name)
761
else if (
DictionaryGlobals
.UnsignedShortLocalName.Value == name)
763
else if (
DictionaryGlobals
.IntLocalName.Value == name)
765
else if (
DictionaryGlobals
.UnsignedIntLocalName.Value == name)
767
else if (
DictionaryGlobals
.LongLocalName.Value == name)
769
else if (
DictionaryGlobals
.integerLocalName.Value == name)
771
else if (
DictionaryGlobals
.positiveIntegerLocalName.Value == name)
773
else if (
DictionaryGlobals
.negativeIntegerLocalName.Value == name)
775
else if (
DictionaryGlobals
.nonPositiveIntegerLocalName.Value == name)
777
else if (
DictionaryGlobals
.nonNegativeIntegerLocalName.Value == name)
779
else if (
DictionaryGlobals
.UnsignedLongLocalName.Value == name)
781
else if (
DictionaryGlobals
.FloatLocalName.Value == name)
783
else if (
DictionaryGlobals
.DoubleLocalName.Value == name)
785
else if (
DictionaryGlobals
.DecimalLocalName.Value == name)
787
else if (
DictionaryGlobals
.DateTimeLocalName.Value == name)
789
else if (
DictionaryGlobals
.StringLocalName.Value == name)
791
else if (
DictionaryGlobals
.timeLocalName.Value == name)
793
else if (
DictionaryGlobals
.dateLocalName.Value == name)
795
else if (
DictionaryGlobals
.hexBinaryLocalName.Value == name)
797
else if (
DictionaryGlobals
.gYearMonthLocalName.Value == name)
799
else if (
DictionaryGlobals
.gYearLocalName.Value == name)
801
else if (
DictionaryGlobals
.gMonthDayLocalName.Value == name)
803
else if (
DictionaryGlobals
.gDayLocalName.Value == name)
805
else if (
DictionaryGlobals
.gMonthLocalName.Value == name)
807
else if (
DictionaryGlobals
.normalizedStringLocalName.Value == name)
809
else if (
DictionaryGlobals
.tokenLocalName.Value == name)
811
else if (
DictionaryGlobals
.languageLocalName.Value == name)
813
else if (
DictionaryGlobals
.NameLocalName.Value == name)
815
else if (
DictionaryGlobals
.NCNameLocalName.Value == name)
817
else if (
DictionaryGlobals
.XSDIDLocalName.Value == name)
819
else if (
DictionaryGlobals
.IDREFLocalName.Value == name)
821
else if (
DictionaryGlobals
.IDREFSLocalName.Value == name)
823
else if (
DictionaryGlobals
.ENTITYLocalName.Value == name)
825
else if (
DictionaryGlobals
.ENTITIESLocalName.Value == name)
827
else if (
DictionaryGlobals
.NMTOKENLocalName.Value == name)
829
else if (
DictionaryGlobals
.NMTOKENSLocalName.Value == name)
831
else if (
DictionaryGlobals
.ByteArrayLocalName.Value == name)
833
else if (
DictionaryGlobals
.ObjectLocalName.Value == name)
835
else if (
DictionaryGlobals
.TimeSpanLocalName.Value == name)
837
else if (
DictionaryGlobals
.UriLocalName.Value == name)
839
else if (
DictionaryGlobals
.QNameLocalName.Value == name)
842
else if (ns ==
DictionaryGlobals
.SerializationNamespace.Value)
844
if (
DictionaryGlobals
.TimeSpanLocalName.Value == name)
846
else if (
DictionaryGlobals
.GuidLocalName.Value == name)
848
else if (
DictionaryGlobals
.CharLocalName.Value == name)
853
else if (ns ==
DictionaryGlobals
.AsmxTypesNamespace.Value)
855
if (
DictionaryGlobals
.CharLocalName.Value == name)
857
else if (
DictionaryGlobals
.GuidLocalName.Value == name)
System\Runtime\Serialization\EnumDataContract.cs (9)
91
Add(typeof(sbyte),
DictionaryGlobals
.SignedByteLocalName.Value); // "byte"
92
Add(typeof(byte),
DictionaryGlobals
.UnsignedByteLocalName.Value); // "unsignedByte"
93
Add(typeof(short),
DictionaryGlobals
.ShortLocalName.Value); // "short"
94
Add(typeof(ushort),
DictionaryGlobals
.UnsignedShortLocalName.Value); // "unsignedShort"
95
Add(typeof(int),
DictionaryGlobals
.IntLocalName.Value); // "int"
96
Add(typeof(uint),
DictionaryGlobals
.UnsignedIntLocalName.Value); // "unsignedInt"
97
Add(typeof(long),
DictionaryGlobals
.LongLocalName.Value); // "long"
98
Add(typeof(ulong),
DictionaryGlobals
.UnsignedLongLocalName.Value); // "unsignedLong"
313
writer.WriteString(
DictionaryGlobals
.Space.Value);
System\Runtime\Serialization\PrimitiveDataContract.cs (102)
50
{ return
DictionaryGlobals
.SerializationNamespace; }
171
public CharDataContract() : this(
DictionaryGlobals
.CharLocalName,
DictionaryGlobals
.SerializationNamespace)
207
internal AsmxCharDataContract() : base(
DictionaryGlobals
.CharLocalName,
DictionaryGlobals
.AsmxTypesNamespace) { }
212
public BooleanDataContract() : base(typeof(bool),
DictionaryGlobals
.BooleanLocalName,
DictionaryGlobals
.SchemaNamespace)
244
public SignedByteDataContract() : base(typeof(sbyte),
DictionaryGlobals
.SignedByteLocalName,
DictionaryGlobals
.SchemaNamespace)
276
public UnsignedByteDataContract() : base(typeof(byte),
DictionaryGlobals
.UnsignedByteLocalName,
DictionaryGlobals
.SchemaNamespace)
308
public ShortDataContract() : base(typeof(short),
DictionaryGlobals
.ShortLocalName,
DictionaryGlobals
.SchemaNamespace)
340
public UnsignedShortDataContract() : base(typeof(ushort),
DictionaryGlobals
.UnsignedShortLocalName,
DictionaryGlobals
.SchemaNamespace)
380
public NullPrimitiveDataContract() : base(typeof(NullPrimitiveDataContract),
DictionaryGlobals
.EmptyString,
DictionaryGlobals
.EmptyString)
425
public IntDataContract() : base(typeof(int),
DictionaryGlobals
.IntLocalName,
DictionaryGlobals
.SchemaNamespace)
457
public UnsignedIntDataContract() : base(typeof(uint),
DictionaryGlobals
.UnsignedIntLocalName,
DictionaryGlobals
.SchemaNamespace)
489
public LongDataContract() : this(
DictionaryGlobals
.LongLocalName,
DictionaryGlobals
.SchemaNamespace)
525
internal IntegerDataContract() : base(
DictionaryGlobals
.integerLocalName,
DictionaryGlobals
.SchemaNamespace) { }
530
internal PositiveIntegerDataContract() : base(
DictionaryGlobals
.positiveIntegerLocalName,
DictionaryGlobals
.SchemaNamespace) { }
535
internal NegativeIntegerDataContract() : base(
DictionaryGlobals
.negativeIntegerLocalName,
DictionaryGlobals
.SchemaNamespace) { }
540
internal NonPositiveIntegerDataContract() : base(
DictionaryGlobals
.nonPositiveIntegerLocalName,
DictionaryGlobals
.SchemaNamespace) { }
545
internal NonNegativeIntegerDataContract() : base(
DictionaryGlobals
.nonNegativeIntegerLocalName,
DictionaryGlobals
.SchemaNamespace) { }
550
public UnsignedLongDataContract() : base(typeof(ulong),
DictionaryGlobals
.UnsignedLongLocalName,
DictionaryGlobals
.SchemaNamespace)
582
public FloatDataContract() : base(typeof(float),
DictionaryGlobals
.FloatLocalName,
DictionaryGlobals
.SchemaNamespace)
614
public DoubleDataContract() : base(typeof(double),
DictionaryGlobals
.DoubleLocalName,
DictionaryGlobals
.SchemaNamespace)
646
public DecimalDataContract() : base(typeof(decimal),
DictionaryGlobals
.DecimalLocalName,
DictionaryGlobals
.SchemaNamespace)
678
public DateTimeDataContract() : base(typeof(DateTime),
DictionaryGlobals
.DateTimeLocalName,
DictionaryGlobals
.SchemaNamespace)
710
public StringDataContract() : this(
DictionaryGlobals
.StringLocalName,
DictionaryGlobals
.SchemaNamespace)
752
internal TimeDataContract() : base(
DictionaryGlobals
.timeLocalName,
DictionaryGlobals
.SchemaNamespace) { }
757
internal DateDataContract() : base(
DictionaryGlobals
.dateLocalName,
DictionaryGlobals
.SchemaNamespace) { }
762
internal HexBinaryDataContract() : base(
DictionaryGlobals
.hexBinaryLocalName,
DictionaryGlobals
.SchemaNamespace) { }
767
internal GYearMonthDataContract() : base(
DictionaryGlobals
.gYearMonthLocalName,
DictionaryGlobals
.SchemaNamespace) { }
772
internal GYearDataContract() : base(
DictionaryGlobals
.gYearLocalName,
DictionaryGlobals
.SchemaNamespace) { }
777
internal GMonthDayDataContract() : base(
DictionaryGlobals
.gMonthDayLocalName,
DictionaryGlobals
.SchemaNamespace) { }
782
internal GDayDataContract() : base(
DictionaryGlobals
.gDayLocalName,
DictionaryGlobals
.SchemaNamespace) { }
787
internal GMonthDataContract() : base(
DictionaryGlobals
.gMonthLocalName,
DictionaryGlobals
.SchemaNamespace) { }
792
internal NormalizedStringDataContract() : base(
DictionaryGlobals
.normalizedStringLocalName,
DictionaryGlobals
.SchemaNamespace) { }
797
internal TokenDataContract() : base(
DictionaryGlobals
.tokenLocalName,
DictionaryGlobals
.SchemaNamespace) { }
802
internal LanguageDataContract() : base(
DictionaryGlobals
.languageLocalName,
DictionaryGlobals
.SchemaNamespace) { }
807
internal NameDataContract() : base(
DictionaryGlobals
.NameLocalName,
DictionaryGlobals
.SchemaNamespace) { }
812
internal NCNameDataContract() : base(
DictionaryGlobals
.NCNameLocalName,
DictionaryGlobals
.SchemaNamespace) { }
817
internal IDDataContract() : base(
DictionaryGlobals
.XSDIDLocalName,
DictionaryGlobals
.SchemaNamespace) { }
822
internal IDREFDataContract() : base(
DictionaryGlobals
.IDREFLocalName,
DictionaryGlobals
.SchemaNamespace) { }
827
internal IDREFSDataContract() : base(
DictionaryGlobals
.IDREFSLocalName,
DictionaryGlobals
.SchemaNamespace) { }
832
internal ENTITYDataContract() : base(
DictionaryGlobals
.ENTITYLocalName,
DictionaryGlobals
.SchemaNamespace) { }
837
internal ENTITIESDataContract() : base(
DictionaryGlobals
.ENTITIESLocalName,
DictionaryGlobals
.SchemaNamespace) { }
842
internal NMTOKENDataContract() : base(
DictionaryGlobals
.NMTOKENLocalName,
DictionaryGlobals
.SchemaNamespace) { }
847
internal NMTOKENSDataContract() : base(
DictionaryGlobals
.NMTOKENSLocalName,
DictionaryGlobals
.SchemaNamespace) { }
852
public ByteArrayDataContract() : base(typeof(byte[]),
DictionaryGlobals
.ByteArrayLocalName,
DictionaryGlobals
.SchemaNamespace)
892
public ObjectDataContract() : base(typeof(object),
DictionaryGlobals
.ObjectLocalName,
DictionaryGlobals
.SchemaNamespace)
941
public TimeSpanDataContract() : this(
DictionaryGlobals
.TimeSpanLocalName,
DictionaryGlobals
.SerializationNamespace)
977
public XsDurationDataContract() : base(
DictionaryGlobals
.TimeSpanLocalName,
DictionaryGlobals
.SchemaNamespace) { }
982
public GuidDataContract() : this(
DictionaryGlobals
.GuidLocalName,
DictionaryGlobals
.SerializationNamespace)
1018
internal AsmxGuidDataContract() : base(
DictionaryGlobals
.GuidLocalName,
DictionaryGlobals
.AsmxTypesNamespace) { }
1023
public UriDataContract() : base(typeof(Uri),
DictionaryGlobals
.UriLocalName,
DictionaryGlobals
.SchemaNamespace)
1061
public QNameDataContract() : base(typeof(XmlQualifiedName),
DictionaryGlobals
.QNameLocalName,
DictionaryGlobals
.SchemaNamespace)
1100
if (object.ReferenceEquals(ns,
DictionaryGlobals
.SerializationNamespace))
System\Runtime\Serialization\XmlDataContract.cs (2)
160
_topLevelElementNamespace = (this.XmlName.Namespace == Globals.SchemaNamespace) ?
DictionaryGlobals
.EmptyString : Namespace;
173
_topLevelElementNamespace = string.IsNullOrEmpty(elementNs) ?
DictionaryGlobals
.EmptyString : dictionary.Add(elementNs);
System\Runtime\Serialization\XmlObjectSerializer.cs (2)
259
writer.WriteAttributeBool(Globals.XsiPrefix,
DictionaryGlobals
.XsiNilLocalName,
DictionaryGlobals
.SchemaInstanceNamespace, true);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (17)
219
xmlWriter.WriteAttributeString(Globals.SerPrefix,
DictionaryGlobals
.IdLocalName,
220
DictionaryGlobals
.SerializationNamespace, string.Create(CultureInfo.InvariantCulture, $"i{objectId}"));
225
xmlWriter.WriteAttributeString(Globals.SerPrefix,
DictionaryGlobals
.RefLocalName,
DictionaryGlobals
.SerializationNamespace, string.Create(CultureInfo.InvariantCulture, $"i{objectId}"));
367
writer.WriteXmlnsAttribute(Globals.XsiPrefix,
DictionaryGlobals
.SchemaInstanceNamespace);
370
writer.WriteXmlnsAttribute(Globals.XsdPrefix,
DictionaryGlobals
.SchemaNamespace);
544
xmlWriter.WriteAttributeQualifiedName(Globals.SerPrefix,
DictionaryGlobals
.ISerializableFactoryTypeLocalName,
DictionaryGlobals
.SerializationNamespace, typeName, typeNs);
551
xmlWriter.WriteAttributeQualifiedName(Globals.SerPrefix,
DictionaryGlobals
.ISerializableFactoryTypeLocalName,
DictionaryGlobals
.SerializationNamespace, DataContract.GetClrTypeString(typeName), DataContract.GetClrTypeString(typeNs));
560
xmlWriter.WriteStartElement(name,
DictionaryGlobals
.EmptyString);
648
writer.WriteAttributeQualifiedName(Globals.XsiPrefix,
DictionaryGlobals
.XsiTypeLocalName,
DictionaryGlobals
.SchemaInstanceNamespace, dataContractName, dataContractNamespace);
653
writer.WriteAttributeQualifiedName(Globals.XsiPrefix,
DictionaryGlobals
.XsiTypeLocalName,
DictionaryGlobals
.SchemaInstanceNamespace, dataContractName, dataContractNamespace);
804
xmlWriter.WriteAttributeQualifiedName(Globals.SerPrefix,
DictionaryGlobals
.ISerializableFactoryTypeLocalName,
DictionaryGlobals
.SerializationNamespace, dataNode.FactoryTypeName, dataNode.FactoryTypeNamespace);
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (8)
160
xmlWriter.WriteAttributeInt(Globals.SerPrefix,
DictionaryGlobals
.IdLocalName,
DictionaryGlobals
.SerializationNamespace, objectId);
163
xmlWriter.WriteAttributeInt(Globals.SerPrefix,
DictionaryGlobals
.RefLocalName,
DictionaryGlobals
.SerializationNamespace, objectId);
164
xmlWriter.WriteAttributeBool(Globals.XsiPrefix,
DictionaryGlobals
.XsiNilLocalName,
DictionaryGlobals
.SchemaInstanceNamespace, true);
257
xmlWriter.WriteAttributeInt(Globals.SerPrefix,
DictionaryGlobals
.ArraySizeLocalName,
DictionaryGlobals
.SerializationNamespace, size);