Abstract
In this chapter, you’ll begin by looking at aspects of exception handling in C++/CLI that are not present in classic C++. Then you’ll look at attributes, which supply metadata for a type and, although not part of standard C++, may be familiar if you’ve used previous versions of Visual C++. You’ll learn how to use the existing .NET Framework attributes, examine some of the common ones, and look at how to define and use your own attributes. Finally, you’ll get a brief overview of the reflection features of the .NET Framework, which provide a way to discover information on a type at runtime and use that information to interact dynamically with a type.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Gordon Hogenson
About this chapter
Cite this chapter
(2006). Exceptions, Attributes, and Reflection. In: C++/CLI. Apress. https://doi.org/10.1007/978-1-4302-0282-0_10
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0282-0_10
Publisher Name: Apress
Print ISBN: 978-1-59059-705-7
Online ISBN: 978-1-4302-0282-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books