Skip to content

Commit b551d43

Browse files
Update Microsoft.Toolkit/Extensions/ISettingsStorageHelperExtensions.cs
Co-authored-by: Sergio Pedri <sergio0694@live.com>
1 parent 11d1a5e commit b551d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit/Extensions/ISettingsStorageHelperExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static class ISettingsStorageHelperExtensions
2424
/// <param name="key">The key of the target object.</param>
2525
/// <param name="fallback">An alternative value returned if the read fails.</param>
2626
/// <returns>The value of the target object, or the fallback value.</returns>
27-
public static TValue GetValueOrDefault<TKey, TValue>(this ISettingsStorageHelper<TKey> storageHelper, TKey key, TValue? fallback = default)
27+
public static TValue? GetValueOrDefault<TKey, TValue>(this ISettingsStorageHelper<TKey> storageHelper, TKey key, TValue? fallback = default)
2828
where TKey : notnull
2929
{
3030
if (storageHelper.TryRead<TValue>(key, out TValue? storedValue))

0 commit comments

Comments
 (0)