DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

26
kicks
published 2 years, 1 month ago, submitted by bottles 2 years, 1 month ago

blogs.sagestone.net — From the post "I hadn't seen this in any of the C# 2.0 feature lists, but Fritz Onion brings this little gem to light for me. There's a new operator: ?? It's a lot like the old inline if statement."

Add a comment 5 comments | category: | Views: 0 | Get KickIt image code
tags: , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
Original post here: http://pluralsight.com/blogs/fritz/archive/2005/12/07/17313.aspx
posted by bottles 2 years, 1 month ago
Nice tip, I didn't know about ?? operator. Thanks
posted by nestor 2 years, 1 month ago
This is news to me too, cheers.
posted by gavinjoyce gavinjoyce 2 years, 1 month ago
Ha-ha :) Let's see how you can overload and/or override this operator :)
posted by jasper22 2 years, 1 month ago
Unfortunately, you can't do something like 'object o = someStringThatMightBeNull ?? DBNull.Value'. Oh well.
posted by bottles 2 years, 1 month ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge