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

◆ TryGetValue< T >()

static bool System.Collections.HashtableExtensions.TryGetValue< T > ( this Hashtable table,
object key,
out T value )
inlinestatic

Definition at line 5 of file HashtableExtensions.cs.

6 {
7 if (table.ContainsKey(key))
8 {
9 value = (T)table[key];
10 return true;
11 }
12 value = default(T);
13 return false;
14 }

References System.Collections.Hashtable.ContainsKey(), System.key, System.T, and System.value.