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.
Michael Robinson - 16 Sep 2007 18:07 GMT
> 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
[quoted text clipped - 13 lines]
>
> 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.

Signature
http://weblog.mkronline.com/
Arne Vajhøj - 16 Sep 2007 18:07 GMT
> 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
[quoted text clipped - 11 lines]
> 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
Mattias Sjögren - 16 Sep 2007 18:12 GMT
>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

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
DaveP - 16 Sep 2007 18:39 GMT
im not sure..you mite wanna download the SDK
from microsoft
DaveP
> 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
[quoted text clipped - 13 lines]
>
> Thanks.
Andreas Mueller - 16 Sep 2007 21:30 GMT
> 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
[quoted text clipped - 13 lines]
>
> Thanks.
You can use Lutz Roeder's Reflector tool to look into the method in
question.
http://www.aisto.com/roeder/dotnet/
HTH,
Andy

Signature
You can email me by removing the NOSPAM parts below:
xmen40NOSPAM@gmxNOSPAM.net