Further work on repeatables

This commit is contained in:
Chomp
2025-01-17 21:39:03 +00:00
parent 1aa1737db3
commit 7a4bc0a3a6
3 changed files with 24 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace Core.Utils.Extensions
{
public static class ObjectExtensions
{
public static bool Contains<T>(this object obj, T key)
{
return obj.GetType().GetProperties().Any(x => x.Name == key.ToString());
}
}
}