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