Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Few extension methods of IEnumerable in C#

, 20 Jul 2011
Rate this:
Please Sign up or sign in to vote.
myList.IfMatch...
myList.IfMatchWithPattern(".").ToList<string>();

It is not required to put <string> after ToList here. The compiler will infer the type.

myList.IfMatchWithPattern(".").ToList();

License

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

About the Author

SergeyT2
Software Developer
Russian Federation Russian Federation
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 20 Jul 2011
Article Copyright 2011 by SergeyT2
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid