Click here to Skip to main content
13,504,308 members
Click here to Skip to main content

Tagged as


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...



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


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


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.180417.1 | Last Updated 19 Jan 2013
Article Copyright 2013 by Tharaka MTR
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid