Further work on repeatables
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user