All Posts

Back to the CLR

Five years in tech context is a really really long time. So it struck me last week Matt Warren tweeted about two blogs I wrote 5 years ago about the intrinsics of the .

Compile time marshalling

In one of my posts about managed/unmanaged interop in C# (P/Invoke), I left you with the promise of answering a few questions, namely: can we manually create our own marshalling stubs in C# (at compile time), and can they be faster than the runtime generated ones ?

PInvoke: beyond the magic

Ever ran into problems passing data between unmanaged code and managed code ? Or just curious what really happens when you slap that [DllImport] on a method ?