O'Reilly logo

C# Web Development with ASP.NET: Visual QuickStart Guide by Jose Mojica

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Reflection and Attributes

C# programs are self-describing. When you compile a C# program, part of the EXE or DLL you generate contains metadata (extra information) that tells you the classes that your EXE or DLL contains. It also tells you about the members of each class: the fields, properties, methods, delegates, events, etc. This information is always available to your program and other programs, and can be reached through a mechanism known as reflection. In addition to being able to read information about a particular class and its members, it’s also possible to extend this metadata with attributes. Attributes are classes that extend the metadata about a certain class or member in the class. You can create your own attributes easily, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required