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

◆ TryAddValue()

bool System.Text.Json.JsonPropertyDictionary< T >.TryAddValue ( string propertyName,
T value )
inlineprivate

Definition at line 362 of file JsonPropertyDictionary.cs.

363 {
364 if (IsReadOnly)
365 {
366 ThrowHelper.ThrowNotSupportedException_NodeCollectionIsReadOnly();
367 }
369 if (_propertyDictionary == null)
370 {
372 {
373 return false;
374 }
375 }
377 {
378 return false;
379 }
381 return true;
382 }
bool TryAdd(TKey key, TValue value)
readonly List< KeyValuePair< string, T > > _propertyList

References System.Text.Json.JsonPropertyDictionary< T >._propertyDictionary, System.Text.Json.JsonPropertyDictionary< T >._propertyList, System.Collections.Generic.List< T >.Add(), System.Text.Json.JsonPropertyDictionary< T >.ContainsProperty(), System.Text.Json.JsonPropertyDictionary< T >.CreateDictionaryIfThresholdMet(), System.Text.Json.JsonPropertyDictionary< T >.IsReadOnly, System.Text.Json.ThrowHelper.ThrowNotSupportedException_NodeCollectionIsReadOnly(), System.Collections.Generic.Dictionary< TKey, TValue >.TryAdd(), and System.value.

Referenced by System.Text.Json.JsonPropertyDictionary< T >.AddValue(), and System.Text.Json.JsonPropertyDictionary< T >.TryAdd().