enable indexing by guid
This commit is contained in:
parent
fbc51f8e18
commit
554e079105
@ -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()
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user