using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace GlitchyEngine.Extensions;
///
/// Extends the -class with useful methods.
///
public static class FieldInfoExtension
{
///
/// Returns if the field has the specified attribute.
///
/// The type of the attribte.
public static bool HasCustomAttribute(this FieldInfo fiedInfo) where T : Attribute
{
return fiedInfo.GetCustomAttribute() != null;
}
}