Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
I have a similar set of extension methods, but instead of MemberInfo, I used ICustomAttributeProvider, which is a more general approach as MemberInfo implements this interface. This would make the extensions usable on the types Assembly and Module to name just a few...Regards,Wouter
How about typing the 'this' parameter as ICustomAttributeProvider ?Also, ToList(...).Where(...) is bad Linq usage, becauseToList() triggers enumeration of the sequence. Try Where(...).ToList() instead.And the ToList() in 'ToList().FirstOrDefault(...)' is entirely pointless.