Reflection provides classes, such as Type and MethodInfo, to represent types, members, parameters, and other code entities. However, when you use reflection you don‘t work directly with these classes, most of which are abstract . Instead, you work with types provided by the common language runtime (CLR).
For example, when you use the C# typeof operator to obtain a Type object, the object is really a RuntimeType. RuntimeType derives from Type, and provides implementations of all the abstract methods.
These runtime classes are internal. They are not documented separately from their base classes, because their behavior is described by the base class documentation.
时间: 2024-11-02 14:48:47