views:

110

answers:

1

You wrote at: Opened SerialPort crashes C# application

"A look into the .NET Framework source code helped a lot. But I think the thrown ObjectDisposedException should be caught by the SerialPort, not by the user."

I'd like to take a look on source code for serialPort. How can I do it?

+1  A: 

You can use .NET Reflector from Red Gate which you can find here http://www.red-gate.com/products/reflector/ to decompile the dlls and the source is also available from Microsoft for debugging.

Edit: Here's two links about how to setup Visual Studio to download the source for debugging as well as an app that will download it all at once for you.

Brian Surowiec
Reflector is the best.I did not find debug source code from Microsoft.
MarekK
I can't switch MS source code in my VS express 2008 SP1. There is no option shown in tutorials. :( Strange. I don't have "Enable source server support".
MarekK