Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Attributes and Reflection pptx
Nội dung xem thử
Mô tả chi tiết
Attributes and
Reflection
Chapter 13
Attributes are a simple technique for adding
metadata information and behavior to code within
applications. You use the reflection technique to
pick the attribute related information at runtime.
This chapter introduces attributes and reflection and
the functions they perform in C# applications. This
chapter discusses attribute syntax, and how to use
some of the predefined attributes. This chapter
discusses also discusses how to create customized
user-defined attributes. In addition, this chapter
discusses reflection and how to use it to extract
attribute related information.
In this chapter, you will learn to:
Describe attributes
Retrieve metadata using reflection
Objectives