New Ternary code snippet for those learning C#

by Andrew Jackson 5. October 2007 18:50

I'm doing my slow migration to C# from VB and getting through a good thick reference book to learn all the language shortcuts that C# seems to be full of.

The experienced C# developers will laugh but I found the Ternary operator syntax not particularly memorable so I created a code snippet to insert a template for me.  Now all I do is type Ternary<tab><tab> and it puts the snippet in with declarations highlighted.

It's quite trivial but I thought I'd offer it up for anyone interested.  I have posted it onto gotCodeSnippets.net 

This is a great little site that needs far more support so I've added all my snippets on there and will continue to do so when I come up with more that are general enough for the world at large.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

C# | Development

Comments

Comments are closed

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen