97 references to Add
Contract.Data.IntegrationTests (2)
DataContractTests.4.1.1.cs (2)
87typeName = dic.Add(this.Name); 88typeNamespace = dic.Add(this.Namespace);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerInputFormatterTest.cs (2)
636RootName = dictionary.Add(SubstituteRootName), 637RootNamespace = dictionary.Add(SubstituteRootNamespace)
XmlDataContractSerializerOutputFormatterTest.cs (2)
517RootName = dictionary.Add(SubstituteRootName), 518RootNamespace = dictionary.Add(SubstituteRootNamespace)
System.Private.DataContractSerialization (91)
System\Runtime\Serialization\ClassDataContract.cs (8)
283return dictionary.Add(ns); 627Name = dictionary.Add(XmlName.Name); 628Namespace = dictionary.Add(XmlName.Namespace); 684Name = dictionary.Add(XmlName.Name); 685Namespace = dictionary.Add(XmlName.Namespace); 713MemberNames[i + baseMemberCount] = dictionary.Add(Members[i].Name); 730Name = dictionary.Add(XmlName.Name); 738MemberNames[i] = dictionary.Add(Members[i].Name);
System\Runtime\Serialization\CollectionDataContract.cs (3)
482Name = dictionary.Add(XmlName.Name); 483Namespace = dictionary.Add(XmlName.Namespace); 485_collectionItemName = dictionary.Add(_itemName);
System\Runtime\Serialization\DataContract.cs (4)
906s_clrTypeStrings.Add(Globals.TypeOfInt.Assembly.FullName!, s_clrTypeStringsDictionary.Add(Globals.MscorlibAssemblyName)); 915value = s_clrTypeStringsDictionary!.Add(key); 1066Name = dictionary.Add(xmlName.Name); 1067Namespace = dictionary.Add(xmlName.Namespace);
System\Runtime\Serialization\DataContractSerializer.cs (2)
90Initialize(type, dictionary.Add(rootName), dictionary.Add(DataContract.GetNamespace(rootNamespace)), knownTypes, int.MaxValue, ignoreExtensionDataObject, preserveObjectReferences, null, false);
System\Runtime\Serialization\DictionaryGlobals.cs (61)
14public static readonly XmlDictionaryString SchemaInstanceNamespace = s_dictionary.Add(Globals.SchemaInstanceNamespace); 15public static readonly XmlDictionaryString SerializationNamespace = s_dictionary.Add(Globals.SerializationNamespace); 16public static readonly XmlDictionaryString SchemaNamespace = s_dictionary.Add(Globals.SchemaNamespace); 17public static readonly XmlDictionaryString XsiTypeLocalName = s_dictionary.Add(Globals.XsiTypeLocalName); 18public static readonly XmlDictionaryString XsiNilLocalName = s_dictionary.Add(Globals.XsiNilLocalName); 21public static readonly XmlDictionaryString IdLocalName = s_dictionary.Add(Globals.IdLocalName); 22public static readonly XmlDictionaryString RefLocalName = s_dictionary.Add(Globals.RefLocalName); 23public static readonly XmlDictionaryString ArraySizeLocalName = s_dictionary.Add(Globals.ArraySizeLocalName); 24public static readonly XmlDictionaryString EmptyString = s_dictionary.Add(string.Empty); 25public static readonly XmlDictionaryString ISerializableFactoryTypeLocalName = s_dictionary.Add(Globals.ISerializableFactoryTypeLocalName); 28public static readonly XmlDictionaryString XmlnsNamespace = s_dictionary.Add(Globals.XmlnsNamespace); 29public static readonly XmlDictionaryString CharLocalName = s_dictionary.Add("char"); 30public static readonly XmlDictionaryString BooleanLocalName = s_dictionary.Add("boolean"); 31public static readonly XmlDictionaryString SignedByteLocalName = s_dictionary.Add("byte"); 32public static readonly XmlDictionaryString UnsignedByteLocalName = s_dictionary.Add("unsignedByte"); 35public static readonly XmlDictionaryString ShortLocalName = s_dictionary.Add("short"); 36public static readonly XmlDictionaryString UnsignedShortLocalName = s_dictionary.Add("unsignedShort"); 37public static readonly XmlDictionaryString IntLocalName = s_dictionary.Add("int"); 38public static readonly XmlDictionaryString UnsignedIntLocalName = s_dictionary.Add("unsignedInt"); 39public static readonly XmlDictionaryString LongLocalName = s_dictionary.Add("long"); 42public static readonly XmlDictionaryString UnsignedLongLocalName = s_dictionary.Add("unsignedLong"); 43public static readonly XmlDictionaryString FloatLocalName = s_dictionary.Add("float"); 44public static readonly XmlDictionaryString DoubleLocalName = s_dictionary.Add("double"); 45public static readonly XmlDictionaryString DecimalLocalName = s_dictionary.Add("decimal"); 46public static readonly XmlDictionaryString DateTimeLocalName = s_dictionary.Add("dateTime"); 49public static readonly XmlDictionaryString StringLocalName = s_dictionary.Add("string"); 50public static readonly XmlDictionaryString ByteArrayLocalName = s_dictionary.Add("base64Binary"); 51public static readonly XmlDictionaryString ObjectLocalName = s_dictionary.Add("anyType"); 52public static readonly XmlDictionaryString TimeSpanLocalName = s_dictionary.Add("duration"); 53public static readonly XmlDictionaryString GuidLocalName = s_dictionary.Add("guid"); 56public static readonly XmlDictionaryString UriLocalName = s_dictionary.Add("anyURI"); 57public static readonly XmlDictionaryString QNameLocalName = s_dictionary.Add("QName"); 58public static readonly XmlDictionaryString ClrTypeLocalName = s_dictionary.Add(Globals.ClrTypeLocalName); 59public static readonly XmlDictionaryString ClrAssemblyLocalName = s_dictionary.Add(Globals.ClrAssemblyLocalName); 60public static readonly XmlDictionaryString Space = s_dictionary.Add(Globals.Space); 63public static readonly XmlDictionaryString timeLocalName = s_dictionary.Add("time"); 64public static readonly XmlDictionaryString dateLocalName = s_dictionary.Add("date"); 65public static readonly XmlDictionaryString hexBinaryLocalName = s_dictionary.Add("hexBinary"); 66public static readonly XmlDictionaryString gYearMonthLocalName = s_dictionary.Add("gYearMonth"); 67public static readonly XmlDictionaryString gYearLocalName = s_dictionary.Add("gYear"); 70public static readonly XmlDictionaryString gMonthDayLocalName = s_dictionary.Add("gMonthDay"); 71public static readonly XmlDictionaryString gDayLocalName = s_dictionary.Add("gDay"); 72public static readonly XmlDictionaryString gMonthLocalName = s_dictionary.Add("gMonth"); 73public static readonly XmlDictionaryString integerLocalName = s_dictionary.Add("integer"); 74public static readonly XmlDictionaryString positiveIntegerLocalName = s_dictionary.Add("positiveInteger"); 77public static readonly XmlDictionaryString negativeIntegerLocalName = s_dictionary.Add("negativeInteger"); 78public static readonly XmlDictionaryString nonPositiveIntegerLocalName = s_dictionary.Add("nonPositiveInteger"); 79public static readonly XmlDictionaryString nonNegativeIntegerLocalName = s_dictionary.Add("nonNegativeInteger"); 80public static readonly XmlDictionaryString normalizedStringLocalName = s_dictionary.Add("normalizedString"); 81public static readonly XmlDictionaryString tokenLocalName = s_dictionary.Add("token"); 84public static readonly XmlDictionaryString languageLocalName = s_dictionary.Add("language"); 85public static readonly XmlDictionaryString NameLocalName = s_dictionary.Add("Name"); 86public static readonly XmlDictionaryString NCNameLocalName = s_dictionary.Add("NCName"); 87public static readonly XmlDictionaryString XSDIDLocalName = s_dictionary.Add("ID"); 88public static readonly XmlDictionaryString IDREFLocalName = s_dictionary.Add("IDREF"); 91public static readonly XmlDictionaryString IDREFSLocalName = s_dictionary.Add("IDREFS"); 92public static readonly XmlDictionaryString ENTITYLocalName = s_dictionary.Add("ENTITY"); 93public static readonly XmlDictionaryString ENTITIESLocalName = s_dictionary.Add("ENTITIES"); 94public static readonly XmlDictionaryString NMTOKENLocalName = s_dictionary.Add("NMTOKEN"); 95public static readonly XmlDictionaryString NMTOKENSLocalName = s_dictionary.Add("NMTOKENS"); 98public static readonly XmlDictionaryString AsmxTypesNamespace = s_dictionary.Add("http://microsoft.com/wsdl/types/");
System\Runtime\Serialization\EnumDataContract.cs (3)
139Name = dictionary.Add(XmlName.Name); 140Namespace = dictionary.Add(XmlName.Namespace); 143_childElementNames[i] = dictionary.Add(Members[i].Name);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (2)
87XmlDictionaryString? rootName = (settings.RootName == null) ? null : new XmlDictionary(1).Add(settings.RootName); 386return (xmlName == null) ? null : new XmlDictionary().Add(ConvertXmlNameToJsonName(xmlName.Value));
System\Runtime\Serialization\Json\JsonGlobals.cs (2)
56public static readonly XmlDictionaryString itemDictionaryString = new XmlDictionary().Add("item"); 57public static readonly XmlDictionaryString rootDictionaryString = new XmlDictionary().Add("root");
System\Runtime\Serialization\XmlDataContract.cs (6)
152Name = dictionary.Add(XmlName.Name); 153Namespace = dictionary.Add(XmlName.Namespace); 171_topLevelElementName = string.IsNullOrEmpty(elementName) ? Name : dictionary.Add(DataContract.EncodeLocalName(elementName)); 173_topLevelElementNamespace = string.IsNullOrEmpty(elementNs) ? DictionaryGlobals.EmptyString : dictionary.Add(elementNs); 264TopLevelElementName = dictionary.Add(elementName.Name); 265TopLevelElementNamespace = dictionary.Add(elementName.Namespace);