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)
276if (object.ReferenceEquals(ns, DictionaryGlobals.SerializationNamespace) && !IsPrimitive) 735dataContract = new SpecialTypeDataContract(type, DictionaryGlobals.ObjectLocalName, DictionaryGlobals.SchemaNamespace); 751if (ns == DictionaryGlobals.SchemaNamespace.Value) 753if (DictionaryGlobals.BooleanLocalName.Value == name) 755else if (DictionaryGlobals.SignedByteLocalName.Value == name) 757else if (DictionaryGlobals.UnsignedByteLocalName.Value == name) 759else if (DictionaryGlobals.ShortLocalName.Value == name) 761else if (DictionaryGlobals.UnsignedShortLocalName.Value == name) 763else if (DictionaryGlobals.IntLocalName.Value == name) 765else if (DictionaryGlobals.UnsignedIntLocalName.Value == name) 767else if (DictionaryGlobals.LongLocalName.Value == name) 769else if (DictionaryGlobals.integerLocalName.Value == name) 771else if (DictionaryGlobals.positiveIntegerLocalName.Value == name) 773else if (DictionaryGlobals.negativeIntegerLocalName.Value == name) 775else if (DictionaryGlobals.nonPositiveIntegerLocalName.Value == name) 777else if (DictionaryGlobals.nonNegativeIntegerLocalName.Value == name) 779else if (DictionaryGlobals.UnsignedLongLocalName.Value == name) 781else if (DictionaryGlobals.FloatLocalName.Value == name) 783else if (DictionaryGlobals.DoubleLocalName.Value == name) 785else if (DictionaryGlobals.DecimalLocalName.Value == name) 787else if (DictionaryGlobals.DateTimeLocalName.Value == name) 789else if (DictionaryGlobals.StringLocalName.Value == name) 791else if (DictionaryGlobals.timeLocalName.Value == name) 793else if (DictionaryGlobals.dateLocalName.Value == name) 795else if (DictionaryGlobals.hexBinaryLocalName.Value == name) 797else if (DictionaryGlobals.gYearMonthLocalName.Value == name) 799else if (DictionaryGlobals.gYearLocalName.Value == name) 801else if (DictionaryGlobals.gMonthDayLocalName.Value == name) 803else if (DictionaryGlobals.gDayLocalName.Value == name) 805else if (DictionaryGlobals.gMonthLocalName.Value == name) 807else if (DictionaryGlobals.normalizedStringLocalName.Value == name) 809else if (DictionaryGlobals.tokenLocalName.Value == name) 811else if (DictionaryGlobals.languageLocalName.Value == name) 813else if (DictionaryGlobals.NameLocalName.Value == name) 815else if (DictionaryGlobals.NCNameLocalName.Value == name) 817else if (DictionaryGlobals.XSDIDLocalName.Value == name) 819else if (DictionaryGlobals.IDREFLocalName.Value == name) 821else if (DictionaryGlobals.IDREFSLocalName.Value == name) 823else if (DictionaryGlobals.ENTITYLocalName.Value == name) 825else if (DictionaryGlobals.ENTITIESLocalName.Value == name) 827else if (DictionaryGlobals.NMTOKENLocalName.Value == name) 829else if (DictionaryGlobals.NMTOKENSLocalName.Value == name) 831else if (DictionaryGlobals.ByteArrayLocalName.Value == name) 833else if (DictionaryGlobals.ObjectLocalName.Value == name) 835else if (DictionaryGlobals.TimeSpanLocalName.Value == name) 837else if (DictionaryGlobals.UriLocalName.Value == name) 839else if (DictionaryGlobals.QNameLocalName.Value == name) 842else if (ns == DictionaryGlobals.SerializationNamespace.Value) 844if (DictionaryGlobals.TimeSpanLocalName.Value == name) 846else if (DictionaryGlobals.GuidLocalName.Value == name) 848else if (DictionaryGlobals.CharLocalName.Value == name) 853else if (ns == DictionaryGlobals.AsmxTypesNamespace.Value) 855if (DictionaryGlobals.CharLocalName.Value == name) 857else 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)
219xmlWriter.WriteAttributeString(Globals.SerPrefix, DictionaryGlobals.IdLocalName, 220DictionaryGlobals.SerializationNamespace, string.Create(CultureInfo.InvariantCulture, $"i{objectId}")); 225xmlWriter.WriteAttributeString(Globals.SerPrefix, DictionaryGlobals.RefLocalName, DictionaryGlobals.SerializationNamespace, string.Create(CultureInfo.InvariantCulture, $"i{objectId}")); 367writer.WriteXmlnsAttribute(Globals.XsiPrefix, DictionaryGlobals.SchemaInstanceNamespace); 370writer.WriteXmlnsAttribute(Globals.XsdPrefix, DictionaryGlobals.SchemaNamespace); 544xmlWriter.WriteAttributeQualifiedName(Globals.SerPrefix, DictionaryGlobals.ISerializableFactoryTypeLocalName, DictionaryGlobals.SerializationNamespace, typeName, typeNs); 551xmlWriter.WriteAttributeQualifiedName(Globals.SerPrefix, DictionaryGlobals.ISerializableFactoryTypeLocalName, DictionaryGlobals.SerializationNamespace, DataContract.GetClrTypeString(typeName), DataContract.GetClrTypeString(typeNs)); 560xmlWriter.WriteStartElement(name, DictionaryGlobals.EmptyString); 648writer.WriteAttributeQualifiedName(Globals.XsiPrefix, DictionaryGlobals.XsiTypeLocalName, DictionaryGlobals.SchemaInstanceNamespace, dataContractName, dataContractNamespace); 653writer.WriteAttributeQualifiedName(Globals.XsiPrefix, DictionaryGlobals.XsiTypeLocalName, DictionaryGlobals.SchemaInstanceNamespace, dataContractName, dataContractNamespace); 804xmlWriter.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);