Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ XmlDictionaryString()

System.Xml.XmlDictionaryString.XmlDictionaryString ( IXmlDictionary dictionary,
string value,
int key )
inline

Definition at line 84 of file XmlDictionaryString.cs.

85 {
86 if (dictionary == null)
87 {
88 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("dictionary"));
89 }
90 if (value == null)
91 {
92 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value"));
93 }
94 if (key < 0 || key > 536870911)
95 {
96 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("key", System.SR.Format(System.SR.ValueMustBeInRange, 0, 536870911)));
97 }
99 _value = value;
100 _key = key;
101 }
static string ValueMustBeInRange
Definition SR.cs:326
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
readonly IXmlDictionary _dictionary

References System.Xml.XmlDictionaryString._dictionary, System.Xml.XmlDictionaryString._key, System.Xml.XmlDictionaryString._value, System.dictionary, System.Xml.XmlDictionaryString.Dictionary, System.SR.Format(), System.key, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.value, and System.SR.ValueMustBeInRange.

Referenced by System.Xml.XmlDictionaryString.EmptyStringDictionary.EmptyStringDictionary().