The C++ Extension Keywords

__abstract indicates that a class is an abstract base class and requires implementation of some or all of its declared methods.

__box makes a managed object from a value type like a structure or variable. The boxed object is reallocated on the Garbage Collected heap and then subject to GC lifetime management.

__delegate is the .NET answer to the callback. It is a declaration for a function signature that provides information about function return types and parameters. The delegate declaration allows both static members and instance members of a class to be called. It is used to map an event handler to a specific stimulus. There are two distinct types of delegate: Single Cast and Multicast. These allow either a simple ...

Get C# and the .NET Framework: The C++ Perspective now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.