July 10, 2008

Probe and Modify Your Types’ Alignment Programmatically

he alignment requirement of your target platform is usually transparent. However, when you need to send or receive objects via a network connection, serialize objects, design heterogeneous containers, or construct different types of objects on a pre-determined memory address, there’s no escape from poking into your compiler’s alignment scheme. With

.NET Building Blocks: Custom User Controls in Practice

ccording to MSDN’s documentation (specifically Varieties of Custom Controls) there are three types of custom controls. The names Microsoft has chosen to use for these three in the documentation are confusing: composite control, extended control, and custom control. The inclusion of “custom control” as a type means you can never