diff --git a/GW2SDK/Features/Flags.cs b/GW2SDK/Features/Flags.cs
index 610569838..b087e3fbe 100644
--- a/GW2SDK/Features/Flags.cs
+++ b/GW2SDK/Features/Flags.cs
@@ -1,10 +1,12 @@
-using System.Reflection;
+using System.Diagnostics.CodeAnalysis;
+using System.Reflection;
namespace GuildWars2;
/// The base type for flags objects.
[PublicAPI]
[DataTransferObject]
+[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
public abstract record Flags
{
/// Other undocumented flags. If you find out what they mean, please open an issue or a pull request.