This commit is contained in:
TheXamlGuy
2024-06-12 23:04:22 +01:00
parent c8f447251e
commit b155f5c6e2
40 changed files with 262 additions and 249 deletions
@@ -1,15 +1,15 @@
namespace Toolkit.Foundation;
public class NavigationRegionProvider(INavigationRegionCollection contexts) :
public class NavigationRegionProvider(INavigationRegionCollection collection) :
INavigationRegionProvider
{
public object? Get(object key) =>
contexts.TryGetValue(key, out object? target) ? target : default;
collection.TryGetValue(key, out object? target) ? target : default;
public bool TryGet(object name,
out object? value)
{
if (contexts.TryGetValue(name,
if (collection.TryGetValue(name,
out object? target))
{
value = target;