Obtaining .NET Framework Source Code - Or Equivalent

  • Thread starter Thread starter Frankie
  • Start date Start date
F

Frankie

Let's say I want to see actual source code for some Framework member - say
the .BeginInvoke() of the delegate class. How can I acquire that? Is there
some utility that will break it out for me? Please note that I'm not looking
for documentation on the method. I'm looking for the equivalent of the
actual source code.

Motivation? I was recently learning about the AsyncOperationManager class
and came across this link - which looks like source code that is or could be
the very source code for the AsyncOperationManager.

http://www.koders.com/csharp/fidC71069981AC71303F8EF8C24FABB13BC3D41EBC3.aspx?s=sort

This is very helpful to have - and I understand that site provides a lot of
such code. Just wondering how I can get that on my own - without having to
rely on any Web site (that site might become outdated, etc).

Thanks.
 
Frankie said:
Let's say I want to see actual source code for some Framework member - say
the .BeginInvoke() of the delegate class. How can I acquire that? Is there
some utility that will break it out for me? Please note that I'm not looking
for documentation on the method. I'm looking for the equivalent of the
actual source code.

Motivation? I was recently learning about the AsyncOperationManager class
and came across this link - which looks like source code that is or could be
the very source code for the AsyncOperationManager.

http://www.koders.com/csharp/fidC71069981AC71303F8EF8C24FABB13BC3D41EBC3.aspx?s=sort

This is very helpful to have - and I understand that site provides a lot of
such code. Just wondering how I can get that on my own - without having to
rely on any Web site (that site might become outdated, etc).

Thanks.

..NET is closed-course. You might want to look at Mono's since it's meant
to mimic .NET's functionality, and much of its guts should be similar
enough to use as a reference.
 
Frankie said:
Let's say I want to see actual source code for some Framework member - say
the .BeginInvoke() of the delegate class. How can I acquire that? Is there
some utility that will break it out for me? Please note that I'm not looking
for documentation on the method. I'm looking for the equivalent of the
actual source code.

Motivation? I was recently learning about the AsyncOperationManager class
and came across this link - which looks like source code that is or could be
the very source code for the AsyncOperationManager.

http://www.koders.com/csharp/fidC71069981AC71303F8EF8C24FABB13BC3D41EBC3.aspx?s=sort

This is very helpful to have - and I understand that site provides a lot of
such code. Just wondering how I can get that on my own - without having to
rely on any Web site (that site might become outdated, etc).

I believe koders.com has the Mono source code not the MS source code.

You can use:

Reflector (http://www.aisto.com/roeder/dotnet/)
FileDisAssembler (http://www.denisbauer.com/NETTools/FileDisassembler.aspx)

Arne
 
Let's say I want to see actual source code for some Framework member - say
the .BeginInvoke() of the delegate class. How can I acquire that? Is there
some utility that will break it out for me? Please note that I'm not looking
for documentation on the method. I'm looking for the equivalent of the
actual source code.

Microsoft provides a shared source CLI implementation, and large parts
of it is based on the same source code as the .NET framework.
http://msdn.microsoft.com/net/sscli


Mattias
 
Frankie said:
Let's say I want to see actual source code for some Framework member - say
the .BeginInvoke() of the delegate class. How can I acquire that? Is there
some utility that will break it out for me? Please note that I'm not looking
for documentation on the method. I'm looking for the equivalent of the
actual source code.

Motivation? I was recently learning about the AsyncOperationManager class
and came across this link - which looks like source code that is or could be
the very source code for the AsyncOperationManager.

http://www.koders.com/csharp/fidC71069981AC71303F8EF8C24FABB13BC3D41EBC3.aspx?s=sort

This is very helpful to have - and I understand that site provides a lot of
such code. Just wondering how I can get that on my own - without having to
rely on any Web site (that site might become outdated, etc).

Thanks.
You can use Lutz Roeder's Reflector tool to look into the method in
question.
http://www.aisto.com/roeder/dotnet/

HTH,
Andy
 
Back
Top