https://learn.microsoft.com/en-us/dotnet/api/system.attribute.getcustomattribute?view=netframework-4.8.1
Attribute.GetCustomAttribute Method (System) | Microsoft Learn
Retrieves a custom attribute of a specified type applied to an assembly, module, type member, or method parameter.
attributemethodsystemmicrosoftlearn