finally and Return Values !!!

C#codeprojectfinally

Let us read some code:- int SomeMethod() { int num = 1; try { num = 5; return num; } finally { num += 5; } } What is the return value of SomeMethod? Some anonymous guy asked that question in the code …

Read more →

Type Safe Logger

Article co-authored with Sanjeev, and published on CodeProject PROBLEM Every application logs a whole bunch of diagnostic messages, primarily for (production) debugging, to the console or the standard …

Read more →

CComPtr Misconception !!!

This is about a killer bug identified by our chief software engineer in our application. What was devised for ease of use and write smart code ended up in this killer defect due to improper …

Read more →