If I recall it correctly, Attribute.GetCustomAttributes
was initially introduced because MemberInfo.GetCustomAttributes
had a bug for fields and events.
Now I'm trying to find any links to this issue, to understand if they're completely interchangeable in modern .NET Framework (if this bug was fixed), but I can't. I may be totally wrong about it, then please explain the correct history, and why there are two ways of doing the same thing?
Aucun commentaire:
Enregistrer un commentaire