1
This commit is contained in:
@@ -139,6 +139,17 @@ namespace BITKit
|
||||
/// </summary>
|
||||
// ReSharper disable once EventNeverInvoked.Global
|
||||
event Action<IRuntimeItem> OnRuntimePropertiesChanged;
|
||||
|
||||
public bool TryGetRuntimeProperty<T>(out T value)
|
||||
{
|
||||
if (RuntimeProperties.TryGetValue(typeof(T), out var o) && o is T t)
|
||||
{
|
||||
value = t;
|
||||
return true;
|
||||
}
|
||||
value = default;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user