Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HashtableExtensions.cs
Go to the documentation of this file.
1
namespace
System.Collections
;
2
3
internal
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
}
System.Collections.HashtableExtensions.TryGetValue< T >
static bool TryGetValue< T >(this Hashtable table, object key, out T value)
Definition
HashtableExtensions.cs:5
System.Collections.HashtableExtensions
Definition
HashtableExtensions.cs:4
System.Collections.Hashtable.ContainsKey
virtual bool ContainsKey(object key)
Definition
Hashtable.cs:724
System.Collections.Hashtable
Definition
Hashtable.cs:13
System.Collections
Definition
BlockingCollection.cs:8
System.ExceptionArgument.value
@ value
System.ExceptionArgument.key
@ key
System.ConsoleKey.T
@ T
source
System.Text.RegularExpressions
System.Collections
HashtableExtensions.cs
Generated by
1.10.0