skip to main | skip to sidebar

Code Goes Here

everything in its right place

Thursday, March 26, 2009

The C# coalesce operator short circuits

Though it isn't mentioned in the help, the C# coalesce operator ( ?? ) does short circuit. If the left hand side isn't null, then the right hand side isn't evaluated.
Posted by Code Monkey at 8:31 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2010 (2)
    • ►  May (2)
  • ▼  2009 (15)
    • ►  November (2)
    • ►  August (1)
    • ►  June (2)
    • ►  April (2)
    • ▼  March (6)
      • The C# coalesce operator short circuits
      • F# Steals Show Smart Tag Keyboard Shortcut
      • Writing a Compiler with F# Part 3
      • Using a custom base class for a generated ObjectCo...
      • Writing a Compiler with F# Part 2
      • Writing a Compiler with F#
    • ►  February (2)
  • ►  2008 (11)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2007 (10)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  June (1)
    • ►  May (2)
    • ►  March (1)
    • ►  January (2)
  • ►  2006 (13)
    • ►  November (1)
    • ►  October (1)
    • ►  September (3)
    • ►  August (3)
    • ►  July (5)

Links

  • My MSDN Articles
  • My VSM Article

About Me

Code Monkey
Dallas, Texas, United States
View my complete profile