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
|