William Duffy

Glasgow Based ASP.NET Web Developer

Archive for January 13th, 2010

MacBook Pro hash key in windows

Can’t find the # hash key # on the keyboard of your MacBook Pro running Windows? I spent ages scratching my head on this one but it is there, it’s just hidden away from sight.
Simply hold ctrl, alt and press 3 to get a nice little hash character onto your screen. Simples!

C# Literal Types

When you are specifying literal numeric values in your code you will, on occasion, have to give the compiler a heads-up on the expected type from the declaration.
For example, the literal value 5.3 will, by default, be assumed to be a double. As such, the following

1
float result = 5.3 / 12.4;

will result in the [...]