Obtaining .NET Framework Source Code - Or Equivalent

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.
 
M

Michael Robinson

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.
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

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
 
M

Mattias Sjögren

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
 
A

Andreas Mueller

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top