Click here to Skip to main content
13,249,087 members (43,358 online)
Click here to Skip to main content

Tagged as

Stats

0 views
Posted 19 Jan 2013

Conditional Operators Shortcuts

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

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