Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ PersistValue()

void System.Net.TrackingValidationObjectDictionary.PersistValue ( string key,
string value,
bool addValue )
inlineprivate

Definition at line 34 of file TrackingValidationObjectDictionary.cs.

35 {
36 key = key.ToLowerInvariant();
37 if (string.IsNullOrEmpty(value))
38 {
39 return;
40 }
42 {
43 object obj = value2(value);
44 if (_internalObjects == null)
45 {
47 }
48 if (addValue)
49 {
51 base.Add(key, obj.ToString());
52 }
53 else
54 {
56 base[key] = obj.ToString();
57 }
58 }
59 else if (addValue)
60 {
61 base.Add(key, value);
62 }
63 else
64 {
65 base[key] = value;
66 }
67 IsChanged = true;
68 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
readonly Dictionary< string, ValidateAndParseValue > _validators

References System.Net.TrackingValidationObjectDictionary._internalObjects, System.Net.TrackingValidationObjectDictionary._validators, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Net.TrackingValidationObjectDictionary.IsChanged, System.key, System.obj, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Net.TrackingValidationObjectDictionary.Add().