Click here to Skip to main content
12,697,545 members (27,651 online)
Click here to Skip to main content

Tagged as

Stats

0 views
Posted

Conditional Operators Shortcuts

, 19 Jan 2013 CPOL
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 0:53 Available Tharaka MTR
Updates in content. 240 changes had been made.
1 No 19-Jan-13 0: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

You may also be interested in...

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