mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Added out
version of TryGetValue
This commit is contained in:
parent
0054299049
commit
c77c7beabd
1 changed files with 6 additions and 0 deletions
|
@ -70,6 +70,12 @@ namespace System
|
|||
outValue = mValue;
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool TryGetValue(out T outValue)
|
||||
{
|
||||
outValue = mValue;
|
||||
return mHasValue;
|
||||
}
|
||||
|
||||
public T GetValueOrDefault(T defaultValue)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue