mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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;
|
outValue = mValue;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool TryGetValue(out T outValue)
|
||||||
|
{
|
||||||
|
outValue = mValue;
|
||||||
|
return mHasValue;
|
||||||
|
}
|
||||||
|
|
||||||
public T GetValueOrDefault(T defaultValue)
|
public T GetValueOrDefault(T defaultValue)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue