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.
KeywordsObject Type Reference Type Primitive Type Garbage Collector Native Reference
Unable to display preview. Download preview PDF.