
Marshaling is the process of creating a bridge between managed code and unmanaged code;
This chapter discusses the nitty-gritty part of marshaling process. It is the base for the rest of discussion about marshaling. It is about marshaling simple data types.

Learn how to work with logins in SQL Server programmatically and via SQL Server Management Studio.

In this article learn how to send e-mail messages via SMTP in .NET Framework.
Learn how to make your application requests UAC elevation (in Windows Vista and later versions) at start.
In this article, learn how to change display settings (resolution, bit count, etc.) via DirectX libraries.
In this article, learn how to to allow the user to move the form without its title bar.
Learn how to programmatically turn on the screen saver via Win32 API and C#.

Learn how to allocate short-lived arrays on the stack with stackalloc, access them through pointers, and copy array data using unsafe C# code.
Learn how to clear the Console screen using Win32 API calls. Also learn additional techniques like how to clear a specific portion of the screen or to move it.
Learn how to compress and decompress files programmatically via .NET.
Learn how to enumerate currently installed SQL Server instances on this machine and on the network.

In this article we will learn how to swap mouse buttons programmatically - to make the left button acts as the right and vice versa.

In this article learn how to store and retrieve binary data in a SQL Server or Access 2007 databases.
See how Windows Vista (and descendants) virtualizes file system and registry operations.
In this article we will learn how to create transactional files in Windows Vista and descendants.

Learn how to change display settings (resolution, bits, rotation, etc.) via C# and Win32 API.

In this article we will see how LINQ defers the execution of the query till you request the results. Plus, learn how to execute the query immediately.

Learn how to retrieve Motherboard serial number and other related information via Windows Management Instrumentation (WMI) in .NET.

In this article you will learn how to embed characters like Office Assistant in your Windows Forms and XAML application.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article