finally and Return Values !!!
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 →Blog posts on tech, engineering, and more.
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 →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 →This is a simple array like class for C++, which can be used as a safe wrapper for accessing a block of memory pointed by a bare pointer.
Read more →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 →I would not want to write chunks of code to spawns threads and perform many of my background tasks such as firing events, UI update etc. Instead I would use the System.Threading.ThreadPool class which …
Read more →