Populating Object from Text Files via Reflection

Download readfileviareflection.zip In .Net, an XML file or even a CSV file can easily be mapped to an object using proper attributes. Using the reflected object type, such XML or CSV files can easily be deserialized into the corresponding object.

Read More →

File.Exists and UNC

If you have used System.IO.File.Exists in ASP.Net, you probably have found out that unless the account under which ASP.Net is running (e.g. ASPNET for Windows XP and IIS_WPG for Windows 2003 Server, etc) has access to a networked location (either…

Read More →

ToString() and Error Logging

In production environment, it is not always possible to step through the compiled code using a debugger and thus we rely on error logs to provide insights into the potential causes of bugs.

Read More →

Debugging Tabbing Issues with Spy++

A few weeks back, I ran into some issues related to tab stops for certain controls on a windows form not behaving as expected (e.g. a TabStop is set to false but the tab seems to still be trapped in…

Read More →