Jamie Cansdale's Radio Weblog


Subscribe to "Jamie Cansdale's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


09 December 2002
 

What's really in that assembly?

System.Reflection is great, but sometimes you wanna know more.  Ever notice that you can't see (say) the IL of a method given a MethodInfo?  Jim Miller [who was one of the main forces behind ECMA-335 (soon be an ISO standard as well!)] just posted two PERreaderWriter packages up on gotdotnet for working with PE files in the raw from managed space. Looks way more convenient than the unmanaged API's (ICorMetaData and friends). Jim showed his own language agnosticism by posting two versions - one written in C# and one written VB.NET.

These libraries are probably most interesting to people writing compilers and related tools  (I may use them myself for this soon) but there's good stuff here even for general development, including this snazzy class:

[Serializable]
public class MMFStream : Stream, IDisposable
{
    private
OSMappedViewOfFile mappedViewOfFile;
    private
Int64 position = 0;
    private
Int64 fileLength;
...
}

Yes! Everybody needs one of those in their toolbox! 

[Managed Space]
2:15:31 AM    


Click here to visit the Radio UserLand website. © Copyright 2003 Jamie Cansdale.
Last update: 02/01/2003; 22:34:26.
December 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Nov   Jan