enable indexing by guid

This commit is contained in:
Michael Becker 2021-05-04 23:57:14 -04:00
parent fbc51f8e18
commit 554e079105
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C
2 changed files with 18 additions and 0 deletions

View File

@ -80,6 +80,15 @@ namespace MBS.Framework
{
return _itemsByID.ContainsKey(id);
}
public Setting this[Guid id]
{
get
{
if (_itemsByID.ContainsKey(id))
return _itemsByID[id];
return null;
}
}
}
protected Setting()

View File

@ -69,6 +69,15 @@ namespace MBS.Framework
{
return _itemsByID.ContainsKey(id);
}
public SettingsGroup this[Guid id]
{
get
{
if (_itemsByID.ContainsKey(id))
return _itemsByID[id];
return null;
}
}
}
public SettingsGroup()