Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Null coalesce vs If null check

, 29 Sep 2011 LGPL3
Dear Reader, In this article, i shall talk about internals of null checking on a type (ref type mostly) by using null coalesce operator or via if condition. Null coalesce operator in c# is ?? and you can use it as shown below:  String SomeValue;  var res = SomeValue ?? null Now, lets us dig [...]



Compare Revision Minor Date Status Editor
2 - publicly available No 29-Sep-11 9:16 Available Sean Ewington
1 No 29-Sep-11 0:58 Composing zenwalker1985


This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


About the Author

Software Developer (Senior) Siemens
India India
A .net developer since 4+ years, wild, curious and adventurous nerd.
Loves Trekking/Hiking, animals and nature.
A FOSS/Linux maniac by default Wink | ;)
An MVP aspirant and loves blogging ->
Follow on   Twitter

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150129.1 | Last Updated 29 Sep 2011
Article Copyright 2011 by zenwalker1985
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid