Successful Strategies for Commenting Code

Successful Strategies for Commenting Code. My personal favorite is the VS.NET’s in-built commenting feature for C#, which can be further utilized to auto-genereate clean MSDN-style documentation using NDoc (btw, there’s a cool VS.NET and SharpDevelop add-in to NDoc).…

Reflector.SQL2005Browser

Denis Bauer’s Reflector.SQL2005Browser is an add-in for Lutz Roeder’s .NET Reflector that can be used to browse .NET assemblies stored in a SQL Server 2005 (Yukon) database.…

Try Catch When

Quite frankly, I didn’t knew that there’s even a WHEN clause to the TRY-CATCH block. Thanks to Eric Porter for sharing this tip! Public Shared Function SaveChangesToServer(ByVal ShouldThrowException As Boolean) As Boolean Try ' Do some stuff Catch Ex As Exception When ShouldThrowException 'Clean-up Throw…

LogThis Update

I’ve been working on this data integration (between SAP Business One and a 3rd-party logistics system) project, on which I had a special need for an event logging class in C# .NET. The in-built logging class (System.Diagnostics.EventLog) of .NET is simple enough and good for basic…