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

NUnit Templates and Snippets for Visual Studio 2005 - Now support C#

by Andrew Jackson 25. September 2007 20:02

Last year I published a VSI package containing NUnit Projects/Items/Snippets to allow you to quickly add tests, whether its a whole test project in its own right, a class within the current project or just a quick test method within your normal code class.  This was all for VB, my language of choice since the year dot.

I am just starting to migrate over to C# and so I thought it was a good idea to update this package so it supports C# as well.

When you run the VSI it prompts which elements you want to install so you can un-select all the VB or C# elements if you really don't want them, but the package is very small so I'd just install the lot, you never know you may make the change one day as well.

Available at the Visual Studio Tools download area here.

This doesn't mean the end of my VB days and code posts here, I'm just trying to diversify and so will post elements on both languages depending on what I'm working on.

kick it on DotNetKicks.com

Be the first to rate this post

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

Tags:

Development | C#

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen