Showing posts with label classes. Show all posts
Showing posts with label classes. Show all posts

Wednesday, June 20, 2007

IComparer vs. IComparable

Why does the .NET framework insist on being sooooo.... complicated?

Sorting In The .NET Framework

Thursday, June 7, 2007

Shorties

I'm learning new stuff every day...

Use F7 key for bringing up the code window in VB.NET 2005. F5 for running/testing/debugging the program.

#Region "Name of Region" for categorising your blocks of code into separate expandable & collapsible nodes.

Use For Each loops to run through lists or classes or dictionaries & the like.

Whenever a particular section of code keeps getting reused a considerable number of times, it warrants making it into a separate subprocedure or function of its own.

Put short comment lines into parts of conditional blocks of code where nothing is done/executed. This is for future purposes, to prevent you thinking it's an error of sorts & waste time tweaking the code unnecessarily.