In Brief

  • An assembly can be used to discover information about the type it contains.

  • A System.Type object can be used to discover information about its constructors, methods, properties, and fields.

  • A ConstructorInfo object can be used to create object instances.

  • A MethodInfo object can be used to invoke methods on a given type.

  • A PropertyInfo object and a FieldInfo object can be used to manipulate an object's state.

  • Custom attributes can be defined to extend the metadata of a language element.

  • Custom attributes can also be used to retrieve extended metadata at runtime.

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.