Posts|Comments

Category Archives: DotNET

Everything related to DotNET

Remote Debugging with VS2008

This is a very common thing many of you might be knowing this thing already. However, I am just putting this information as it might help someone. In a distributed development scenario it becomes imminent to have remote debugging possible lest you have your development environment both on your regular development system and the remote [...]

MSDN code examples could be incorrect as well

It was really odd for me to find an error in MSDN code example which took almost a couple of hours to figure out what is wrong. I am working in VSTO (Visual Studio Tool for Office). I am developing a plugin which is suppose to override some of the specific Office 2007 functionalities and [...]

Microsoft .NET Framework 3.5 SP1 Source Code Released

I would have never known that this takes up these many calls to perform a simple Console.WriteLine operation unless Microsoft had released the source code of the .net framework. I am delighted that the source code for 3.5 sp1 is out. It is time to dive deep in the framework itself.
Find the link below:
http://blogs.msdn.com/rscc/archive/2008/08/28/net-framework-3-5-sp1-sources-are-available.aspx

SharpZipLib Decompression

Very often I require to perform (de)compression of archives programmatically. I use SharpZipLib for this purpose. After fiddling with several algorithms I found this simple piece of code that performs an elegant task of quick decompression of a zip archive.
internal void Decompress(string fileName,string extractPath)
{
FastZip fZip = new FastZip();
fZip.ExtractZip(fileName, extractPath, “”);
}
Link: http://dotnet.org.za/thea/archive/2006/01/17/Unzip-files-programmatically-in-C_2300_-_2D00_-_2300_ZipLib.aspx

Quick script in C#/VB and validate LINQ Expressions

I have been trying to push myself for learning LINQ and Lambda expressions for quite some time now. I try to create some dummy projects sometimes but since our current project is being developed in .NET Framework v2.0 so these very new things get out of touch very soon. Also, there is so much happening [...]