ExtensionReflectionRepository Class
- Namespace
- Kampute.DocToolkit.Metadata.Adapters
- Assembly
- Kampute.DocToolkit.dll
Definition
Provides a repository for managing reflection information about extension blocks and their members within a specified assembly.
public class ExtensionReflectionRepository : IExtensionReflectionRepository- Inheritance
- object
- ExtensionReflectionRepository
- Implements
Remarks
This repository caches reflection information about extension blocks and their members for specific container types within the given assembly.
Thread Safety
All public members of the type are guaranteed to be thread-safe.
Constructors
| ExtensionReflectionRepository(IAssembly) | Initialize a new instance of ExtensionReflectionRepository class. |
Properties
| Assembly | Gets the assembly whose extensions are managed by the repository. |
Methods
| GetDeclaredExtensionBlocks(Type) | Retrieves reflection information for all extension blocks declared on the given container type. |
| GetDeclaredExtensionMethods(Type) | Retrieves reflection information for all extension methods declared by the extension blocks on the given container type. |
| GetDeclaredExtensionProperties(Type) | Retrieves reflection information for all extension properties declared by the extension blocks on the given container type. |
| GetExtensionContainer(Type) | Gets the cached ExtensionContainerInfo for the given container type. |
| GetExtensionMemberInfo(MethodInfo) | Retrieves the extension member information for the specified method, if it is an extension method or property accessor. |
| GetNormalizedMethodInfo(MethodInfo) | Retrieves the normalized reflection information for the specified method as an extension method or property accessor. |
| IsPotentialExtensionMethod(MethodInfo) | Determines whether the specified method is a potential extension method. |
| IsValidExtensionContainerType(Type) | Determines whether the specified type is a valid container for extension members. |
