For Microsoft Kool-Aid Drinkers, Non-paid MS Evangelists written by a Senior Consultant, Passionate about Tech

Archive for February, 2014

Ever wish you had a way to pad a string with spaces or multiply a number by 2 or 3 without having to write out all the syntax every time you needed it?  What if strings or integers just had functions built in to do the little extras that maybe your application does repetitive times throughout your code?

Well, in C#, you can use extension methods to enhance your experience.  Extension methods allow you to add functionality to existing types such as string, integers, etc.. Even sealed types are supported. They are declared as static methods and you can use them for interfaces and constructed types.

Let’s get started…

Read more

imageThis is probably going to date me, but does anyone out there remember the old green screens that developers had to work on back in the day?  Well, I do.  They were really black screens with green text (or black on green in some cases), but as you know, we have come a long way.

Fast forward to today and we have super high resolution monitors with millions of colors.  The development environments now have icons, text, controls, animations, etc.  Enter, Visual Studio 2013.  Okay, for those who have been using previous Visual Studio versions, know very well, that this isn’t something new, but it supports a bunch of ways to customize your development environment, such as overall themes, fonts and colors.  Let’s take a look…

Read more

imageAs a coder, you probably have a number of personal formatting conventions that you wish everyone would conform to while coding, right?  Take for example, tab spacing, or indenting of braces.  Some people have tabs embedded, others use spacing, etc.  However, maybe you like your indentation to be the same across your entire application.

Let’s take a look at some settings for Visual Studio 2013 that will allow you to setup your tabs and indentation.


Read more