From c77c7beabd931803b90db66aa16db5d250f62f6a Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 17 Jun 2024 06:32:36 +0200 Subject: [PATCH] Added `out` version of `TryGetValue` --- BeefLibs/corlib/src/Nullable.bf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BeefLibs/corlib/src/Nullable.bf b/BeefLibs/corlib/src/Nullable.bf index 6830b790..1210b9e6 100644 --- a/BeefLibs/corlib/src/Nullable.bf +++ b/BeefLibs/corlib/src/Nullable.bf @@ -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) {