1
This commit is contained in:
@@ -119,11 +119,16 @@ namespace BITKit
|
||||
}
|
||||
public bool TryRemoveProperty<T>()
|
||||
{
|
||||
if(properties.TryGetValue(typeof(T).FullName, out var x))
|
||||
foreach (var pair in properties.Where(x=>x.Value is T))
|
||||
{
|
||||
properties.Remove(typeof(T).Name);
|
||||
properties.Remove(pair.Key);
|
||||
return true;
|
||||
}
|
||||
// if(properties.TryGetValue(typeof(T).FullName, out var x))
|
||||
// {
|
||||
// properties.Remove(typeof(T).Name);
|
||||
// return true;
|
||||
// }
|
||||
return false;
|
||||
}
|
||||
public bool TrySetProperty<T>(T value)
|
||||
|
Reference in New Issue
Block a user