Skip to main content

Exceptions, Attributes, and Reflection

  • Chapter
C++/CLI
  • 1093 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 79.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics