206 references to DictionaryGlobals
System.Private.DataContractSerialization (206)
System\Runtime\Serialization\Attributes.cs (11)
12DictionaryGlobals.IdLocalName, 13DictionaryGlobals.ArraySizeLocalName, 14DictionaryGlobals.RefLocalName, 15DictionaryGlobals.ClrTypeLocalName, 16DictionaryGlobals.ClrAssemblyLocalName, 17DictionaryGlobals.ISerializableFactoryTypeLocalName 22DictionaryGlobals.XsiNilLocalName, 23DictionaryGlobals.XsiTypeLocalName 46switch (reader.IndexOfLocalName(s_serializationLocalNames, DictionaryGlobals.SerializationNamespace)) 67switch (reader.IndexOfLocalName(s_schemaInstanceLocalNames, DictionaryGlobals.SchemaInstanceNamespace)) 76if (!reader.IsNamespaceUri(DictionaryGlobals.XmlnsNamespace))
System\Runtime\Serialization\DataContract.cs (55)
294if (object.ReferenceEquals(ns, DictionaryGlobals.SerializationNamespace) && !IsPrimitive) 752dataContract = new SpecialTypeDataContract(type, DictionaryGlobals.ObjectLocalName, DictionaryGlobals.SchemaNamespace); 768if (ns == DictionaryGlobals.SchemaNamespace.Value) 770if (DictionaryGlobals.BooleanLocalName.Value == name) 772else if (DictionaryGlobals.SignedByteLocalName.Value == name) 774else if (DictionaryGlobals.UnsignedByteLocalName.Value == name) 776else if (DictionaryGlobals.ShortLocalName.Value == name) 778else if (DictionaryGlobals.UnsignedShortLocalName.Value == name) 780else if (DictionaryGlobals.IntLocalName.Value == name) 782else if (DictionaryGlobals.UnsignedIntLocalName.Value == name) 784else if (DictionaryGlobals.LongLocalName.Value == name) 786else if (DictionaryGlobals.integerLocalName.Value == name) 788else if (DictionaryGlobals.positiveIntegerLocalName.Value == name) 790else if (DictionaryGlobals.negativeIntegerLocalName.Value == name) 792else if (DictionaryGlobals.nonPositiveIntegerLocalName.Value == name) 794else if (DictionaryGlobals.nonNegativeIntegerLocalName.Value == name) 796else if (DictionaryGlobals.UnsignedLongLocalName.Value == name) 798else if (DictionaryGlobals.FloatLocalName.Value == name) 800else if (DictionaryGlobals.DoubleLocalName.Value == name) 802else if (DictionaryGlobals.DecimalLocalName.Value == name) 804else if (DictionaryGlobals.DateTimeLocalName.Value == name) 806else if (DictionaryGlobals.StringLocalName.Value == name) 808else if (DictionaryGlobals.timeLocalName.Value == name) 810else if (DictionaryGlobals.dateLocalName.Value == name) 812else if (DictionaryGlobals.hexBinaryLocalName.Value == name) 814else if (DictionaryGlobals.gYearMonthLocalName.Value == name) 816else if (DictionaryGlobals.gYearLocalName.Value == name) 818else if (DictionaryGlobals.gMonthDayLocalName.Value == name) 820else if (DictionaryGlobals.gDayLocalName.Value == name) 822else if (DictionaryGlobals.gMonthLocalName.Value == name) 824else if (DictionaryGlobals.normalizedStringLocalName.Value == name) 826else if (DictionaryGlobals.tokenLocalName.Value == name) 828else if (DictionaryGlobals.languageLocalName.Value == name) 830else if (DictionaryGlobals.NameLocalName.Value == name) 832else if (DictionaryGlobals.NCNameLocalName.Value == name) 834else if (DictionaryGlobals.XSDIDLocalName.Value == name) 836else if (DictionaryGlobals.IDREFLocalName.Value == name) 838else if (DictionaryGlobals.IDREFSLocalName.Value == name) 840else if (DictionaryGlobals.ENTITYLocalName.Value == name) 842else if (DictionaryGlobals.ENTITIESLocalName.Value == name) 844else if (DictionaryGlobals.NMTOKENLocalName.Value == name) 846else if (DictionaryGlobals.NMTOKENSLocalName.Value == name) 848else if (DictionaryGlobals.ByteArrayLocalName.Value == name) 850else if (DictionaryGlobals.ObjectLocalName.Value == name) 852else if (DictionaryGlobals.TimeSpanLocalName.Value == name) 854else if (DictionaryGlobals.UriLocalName.Value == name) 856else if (DictionaryGlobals.QNameLocalName.Value == name) 859else if (ns == DictionaryGlobals.SerializationNamespace.Value) 861if (DictionaryGlobals.TimeSpanLocalName.Value == name) 863else if (DictionaryGlobals.GuidLocalName.Value == name) 865else if (DictionaryGlobals.CharLocalName.Value == name) 870else if (ns == DictionaryGlobals.AsmxTypesNamespace.Value) 872if (DictionaryGlobals.CharLocalName.Value == name) 874else if (DictionaryGlobals.GuidLocalName.Value == name)
System\Runtime\Serialization\EnumDataContract.cs (9)
91Add(typeof(sbyte), DictionaryGlobals.SignedByteLocalName.Value); // "byte" 92Add(typeof(byte), DictionaryGlobals.UnsignedByteLocalName.Value); // "unsignedByte" 93Add(typeof(short), DictionaryGlobals.ShortLocalName.Value); // "short" 94Add(typeof(ushort), DictionaryGlobals.UnsignedShortLocalName.Value); // "unsignedShort" 95Add(typeof(int), DictionaryGlobals.IntLocalName.Value); // "int" 96Add(typeof(uint), DictionaryGlobals.UnsignedIntLocalName.Value); // "unsignedInt" 97Add(typeof(long), DictionaryGlobals.LongLocalName.Value); // "long" 98Add(typeof(ulong), DictionaryGlobals.UnsignedLongLocalName.Value); // "unsignedLong" 313writer.WriteString(DictionaryGlobals.Space.Value);
System\Runtime\Serialization\PrimitiveDataContract.cs (102)
50{ return DictionaryGlobals.SerializationNamespace; } 171public CharDataContract() : this(DictionaryGlobals.CharLocalName, DictionaryGlobals.SerializationNamespace) 207internal AsmxCharDataContract() : base(DictionaryGlobals.CharLocalName, DictionaryGlobals.AsmxTypesNamespace) { } 212public BooleanDataContract() : base(typeof(bool), DictionaryGlobals.BooleanLocalName, DictionaryGlobals.SchemaNamespace) 244public SignedByteDataContract() : base(typeof(sbyte), DictionaryGlobals.SignedByteLocalName, DictionaryGlobals.SchemaNamespace) 276public UnsignedByteDataContract() : base(typeof(byte), DictionaryGlobals.UnsignedByteLocalName, DictionaryGlobals.SchemaNamespace) 308public ShortDataContract() : base(typeof(short), DictionaryGlobals.ShortLocalName, DictionaryGlobals.SchemaNamespace) 340public UnsignedShortDataContract() : base(typeof(ushort), DictionaryGlobals.UnsignedShortLocalName, DictionaryGlobals.SchemaNamespace) 380public NullPrimitiveDataContract() : base(typeof(NullPrimitiveDataContract), DictionaryGlobals.EmptyString, DictionaryGlobals.EmptyString) 425public IntDataContract() : base(typeof(int), DictionaryGlobals.IntLocalName, DictionaryGlobals.SchemaNamespace) 457public UnsignedIntDataContract() : base(typeof(uint), DictionaryGlobals.UnsignedIntLocalName, DictionaryGlobals.SchemaNamespace) 489public LongDataContract() : this(DictionaryGlobals.LongLocalName, DictionaryGlobals.SchemaNamespace) 525internal IntegerDataContract() : base(DictionaryGlobals.integerLocalName, DictionaryGlobals.SchemaNamespace) { } 530internal PositiveIntegerDataContract() : base(DictionaryGlobals.positiveIntegerLocalName, DictionaryGlobals.SchemaNamespace) { } 535internal NegativeIntegerDataContract() : base(DictionaryGlobals.negativeIntegerLocalName, DictionaryGlobals.SchemaNamespace) { } 540internal NonPositiveIntegerDataContract() : base(DictionaryGlobals.nonPositiveIntegerLocalName, DictionaryGlobals.SchemaNamespace) { } 545internal NonNegativeIntegerDataContract() : base(DictionaryGlobals.nonNegativeIntegerLocalName, DictionaryGlobals.SchemaNamespace) { } 550public UnsignedLongDataContract() : base(typeof(ulong), DictionaryGlobals.UnsignedLongLocalName, DictionaryGlobals.SchemaNamespace) 582public FloatDataContract() : base(typeof(float), DictionaryGlobals.FloatLocalName, DictionaryGlobals.SchemaNamespace) 614public DoubleDataContract() : base(typeof(double), DictionaryGlobals.DoubleLocalName, DictionaryGlobals.SchemaNamespace) 646public DecimalDataContract() : base(typeof(decimal), DictionaryGlobals.DecimalLocalName, DictionaryGlobals.SchemaNamespace) 678public DateTimeDataContract() : base(typeof(DateTime), DictionaryGlobals.DateTimeLocalName, DictionaryGlobals.SchemaNamespace) 710public StringDataContract() : this(DictionaryGlobals.StringLocalName, DictionaryGlobals.SchemaNamespace) 752internal TimeDataContract() : base(DictionaryGlobals.timeLocalName, DictionaryGlobals.SchemaNamespace) { } 757internal DateDataContract() : base(DictionaryGlobals.dateLocalName, DictionaryGlobals.SchemaNamespace) { } 762internal HexBinaryDataContract() : base(DictionaryGlobals.hexBinaryLocalName, DictionaryGlobals.SchemaNamespace) { } 767internal GYearMonthDataContract() : base(DictionaryGlobals.gYearMonthLocalName, DictionaryGlobals.SchemaNamespace) { } 772internal GYearDataContract() : base(DictionaryGlobals.gYearLocalName, DictionaryGlobals.SchemaNamespace) { } 777internal GMonthDayDataContract() : base(DictionaryGlobals.gMonthDayLocalName, DictionaryGlobals.SchemaNamespace) { } 782internal GDayDataContract() : base(DictionaryGlobals.gDayLocalName, DictionaryGlobals.SchemaNamespace) { } 787internal GMonthDataContract() : base(DictionaryGlobals.gMonthLocalName, DictionaryGlobals.SchemaNamespace) { } 792internal NormalizedStringDataContract() : base(DictionaryGlobals.normalizedStringLocalName, DictionaryGlobals.SchemaNamespace) { } 797internal TokenDataContract() : base(DictionaryGlobals.tokenLocalName, DictionaryGlobals.SchemaNamespace) { } 802internal LanguageDataContract() : base(DictionaryGlobals.languageLocalName, DictionaryGlobals.SchemaNamespace) { } 807internal NameDataContract() : base(DictionaryGlobals.NameLocalName, DictionaryGlobals.SchemaNamespace) { } 812internal NCNameDataContract() : base(DictionaryGlobals.NCNameLocalName, DictionaryGlobals.SchemaNamespace) { } 817internal IDDataContract() : base(DictionaryGlobals.XSDIDLocalName, DictionaryGlobals.SchemaNamespace) { } 822internal IDREFDataContract() : base(DictionaryGlobals.IDREFLocalName, DictionaryGlobals.SchemaNamespace) { } 827internal IDREFSDataContract() : base(DictionaryGlobals.IDREFSLocalName, DictionaryGlobals.SchemaNamespace) { } 832internal ENTITYDataContract() : base(DictionaryGlobals.ENTITYLocalName, DictionaryGlobals.SchemaNamespace) { } 837internal ENTITIESDataContract() : base(DictionaryGlobals.ENTITIESLocalName, DictionaryGlobals.SchemaNamespace) { } 842internal NMTOKENDataContract() : base(DictionaryGlobals.NMTOKENLocalName, DictionaryGlobals.SchemaNamespace) { } 847internal NMTOKENSDataContract() : base(DictionaryGlobals.NMTOKENSLocalName, DictionaryGlobals.SchemaNamespace) { } 852public ByteArrayDataContract() : base(typeof(byte[]), DictionaryGlobals.ByteArrayLocalName, DictionaryGlobals.SchemaNamespace) 892public ObjectDataContract() : base(typeof(object), DictionaryGlobals.ObjectLocalName, DictionaryGlobals.SchemaNamespace) 941public TimeSpanDataContract() : this(DictionaryGlobals.TimeSpanLocalName, DictionaryGlobals.SerializationNamespace) 977public XsDurationDataContract() : base(DictionaryGlobals.TimeSpanLocalName, DictionaryGlobals.SchemaNamespace) { } 982public GuidDataContract() : this(DictionaryGlobals.GuidLocalName, DictionaryGlobals.SerializationNamespace) 1018internal AsmxGuidDataContract() : base(DictionaryGlobals.GuidLocalName, DictionaryGlobals.AsmxTypesNamespace) { } 1023public UriDataContract() : base(typeof(Uri), DictionaryGlobals.UriLocalName, DictionaryGlobals.SchemaNamespace) 1061public QNameDataContract() : base(typeof(XmlQualifiedName), DictionaryGlobals.QNameLocalName, DictionaryGlobals.SchemaNamespace) 1100if (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)
259writer.WriteAttributeBool(Globals.XsiPrefix, DictionaryGlobals.XsiNilLocalName, DictionaryGlobals.SchemaInstanceNamespace, true);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (17)
218xmlWriter.WriteAttributeString(Globals.SerPrefix, DictionaryGlobals.IdLocalName, 219DictionaryGlobals.SerializationNamespace, string.Create(CultureInfo.InvariantCulture, $"i{objectId}")); 224xmlWriter.WriteAttributeString(Globals.SerPrefix, DictionaryGlobals.RefLocalName, DictionaryGlobals.SerializationNamespace, string.Create(CultureInfo.InvariantCulture, $"i{objectId}")); 366writer.WriteXmlnsAttribute(Globals.XsiPrefix, DictionaryGlobals.SchemaInstanceNamespace); 369writer.WriteXmlnsAttribute(Globals.XsdPrefix, DictionaryGlobals.SchemaNamespace); 543xmlWriter.WriteAttributeQualifiedName(Globals.SerPrefix, DictionaryGlobals.ISerializableFactoryTypeLocalName, DictionaryGlobals.SerializationNamespace, typeName, typeNs); 550xmlWriter.WriteAttributeQualifiedName(Globals.SerPrefix, DictionaryGlobals.ISerializableFactoryTypeLocalName, DictionaryGlobals.SerializationNamespace, DataContract.GetClrTypeString(typeName), DataContract.GetClrTypeString(typeNs)); 559xmlWriter.WriteStartElement(name, DictionaryGlobals.EmptyString); 647writer.WriteAttributeQualifiedName(Globals.XsiPrefix, DictionaryGlobals.XsiTypeLocalName, DictionaryGlobals.SchemaInstanceNamespace, dataContractName, dataContractNamespace); 652writer.WriteAttributeQualifiedName(Globals.XsiPrefix, DictionaryGlobals.XsiTypeLocalName, DictionaryGlobals.SchemaInstanceNamespace, dataContractName, dataContractNamespace); 803xmlWriter.WriteAttributeQualifiedName(Globals.SerPrefix, DictionaryGlobals.ISerializableFactoryTypeLocalName, DictionaryGlobals.SerializationNamespace, dataNode.FactoryTypeName, dataNode.FactoryTypeNamespace);
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (8)
160xmlWriter.WriteAttributeInt(Globals.SerPrefix, DictionaryGlobals.IdLocalName, DictionaryGlobals.SerializationNamespace, objectId); 163xmlWriter.WriteAttributeInt(Globals.SerPrefix, DictionaryGlobals.RefLocalName, DictionaryGlobals.SerializationNamespace, objectId); 164xmlWriter.WriteAttributeBool(Globals.XsiPrefix, DictionaryGlobals.XsiNilLocalName, DictionaryGlobals.SchemaInstanceNamespace, true); 257xmlWriter.WriteAttributeInt(Globals.SerPrefix, DictionaryGlobals.ArraySizeLocalName, DictionaryGlobals.SerializationNamespace, size);