chore: memberInfo.HasAttribute method added
This commit is contained in:
@@ -4,6 +4,7 @@ namespace Syntriax.Engine.Serialization;
|
||||
|
||||
internal static class Utils
|
||||
{
|
||||
internal static bool HasAttribute<T>(this MemberInfo memberInfo) where T : Attribute => memberInfo.GetCustomAttribute<T>() is not null;
|
||||
internal static bool IsEnumerable(this Type type) => typeof(System.Collections.IEnumerable).IsAssignableFrom(type) && type != typeof(string);
|
||||
|
||||
internal static TypeData GetTypeData(this Type objectType)
|
||||
|
||||
Reference in New Issue
Block a user