Click here to Skip to main content
11,490,003 members (60,687 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Conditional Operators Shortcuts

, 19 Jan 2013 CPOL 0
Use switch statementswitch (value){ case 6: case 8: case 10: size1 = value; break;}or if you really want to do this create extension method.static class Extensions{ public static bool In(this T value, params T[] values) { if (values...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 19-Jan-13 10:53 Available Tharaka MTR
Updates in content. 240 changes had been made.
1 No 19-Jan-13 10:38 Available Tharaka MTR

License

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

Share

About the Author

Tharaka MTR
Technical Lead Eyepax IT Consulting (Pvt) Ltd.
Sri Lanka Sri Lanka
Having more than 9 year hands-on industry experience in software development
Responsible for designing, implementing and managing complex software systems with stringent up-time requirement.

Visit my blog
Follow on   Twitter   LinkedIn

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150520.1 | Last Updated 19 Jan 2013
Article Copyright 2013 by Tharaka MTR
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid