Monday, April 30, 2007

2 Cool things in programming (Nullables and CopyPath)

Google for "Copy Path Shell Extension" and likely the product by "BJB, Inc" will show up. This thing copies the path of a file to the clipboard. Useful in a command line world.

After the Richmond Code Camp, I now know about using "?" in variable declarations. This creates a NULLABLE data type of the type you want. Very useful for database applications.

1 comment:

Brian O said...

Commenting to my own Blog, talk about desperate :-)
There is also the C# "Null Coalescing Operator".

It allows you to say something like

string myVar =
OtherVar??"I am Null";