The C# ?? null coalescing operator (and using it with LINQ)
page 1 of 5
Published: 20 Sep 2007
Unedited - Community Contributed
Abstract
This article examines the usage of ?? null coalescing operator in C# using LINQ.
by Scott Guthrie
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 24934/ 31

Introduction

Republished with Permission - Original Article

One of the subtle (but cool) language features of C# is the ?? "null coalescing" operator.  This provides a nice, terse way to check whether a value is null, and if so return an alternate value.


View Entire Article

User Comments

Title: C # Linq   
Name: Faheem
Date: 2009-05-21 7:43:20 AM
Comment:
hi
say i have 300 xml elements and 250 may or may not have their values in xml file then it will be very tedious for me to write all element name and using ? style as u mention . IS there any method which is universal and easy to use.
Title: ASP .Net   
Name: raja
Date: 2007-10-05 3:36:50 AM
Comment:
detail Above session






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-25 11:27:54 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search