How to retrieve a C# attributes parameters In C#, I am extracting the attribute data from a custom attribute named ImageAttribute like this: