Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HashtableExtensions.cs
Go to the documentation of this file.
1namespace System.Collections;
2
3internal static class HashtableExtensions
4{
5 public static bool TryGetValue<T>(this Hashtable table, object key, out T value)
6 {
7 if (table.ContainsKey(key))
8 {
9 value = (T)table[key];
10 return true;
11 }
12 value = default(T);
13 return false;
14 }
15}
static bool TryGetValue< T >(this Hashtable table, object key, out T value)
virtual bool ContainsKey(object key)
Definition Hashtable.cs:724