Click here to Skip to main content
12,356,784 members (75,316 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

1.6K views
1 bookmarked
Posted

Get CustomAttributes the easy way....

, 15 Apr 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
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.
How about typing the 'this' parameter as ICustomAttributeProvider ?

Also, ToList(...).Where(...) is bad Linq usage, because
ToList() triggers enumeration of the sequence.

Try Where(...).ToList() instead.

And the ToList() in 'ToList().FirstOrDefault(...)' is
entirely pointless.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

tonyt
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 15 Apr 2010
Article Copyright 2010 by tonyt
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid