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

◆ TryGetValue()

bool System.Text.Json.JsonPropertyDictionary< T >.TryGetValue ( string propertyName,
out T value )
inline

Definition at line 278 of file JsonPropertyDictionary.cs.

279 {
280 if (propertyName == null)
281 {
282 throw new ArgumentNullException("propertyName");
283 }
284 if (_propertyDictionary != null)
285 {
287 }
289 {
291 {
292 value = property.Value;
293 return true;
294 }
295 }
296 value = null;
297 return false;
298 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
new bool Equals(object? x, object? y)
readonly List< KeyValuePair< string, T > > _propertyList

References System.Text.Json.JsonPropertyDictionary< T >._propertyDictionary, System.Text.Json.JsonPropertyDictionary< T >._propertyList, System.Text.Json.JsonPropertyDictionary< T >._stringComparer, System.StringComparer.Equals(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Text.Json.JsonPropertyDictionary< T >.TryGetPropertyValue().