CHAPTER 4Object Semantics in C++/CLI
This chapter gets back into the language itself and covers how objects behave in C++/CLI. You'll learn a bit more about value types and reference types, including some of the implications of having a unified type system. You'll also see how to work with objects on the managed heap as though they were stack-allocated variables, complete with the assurance that they will be cleaned up when they go out of scope. You'll look at tracking references and object dereferencing and copying. You'll also explore the various methods of passing parameters in C++/CLI and look at how to use C++/CLI types as return values.
Object Semantics for Reference Types
Variables of reference types, whether explicitly declared as a ...
Get Foundations of C++/CLI: The Visual C++ Language for .NET 3.5 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.