using System; using System.Collections.Generic; using System.Reflection; using System.Text; namespace GlitchyEngine.Extensions; 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; } }