MemberAdapterRepository Class
- Namespace
- Kampute.DocToolkit.Metadata.Adapters
- Assembly
- Kampute.DocToolkit.dll
Definition
Manages the creation and caching of metadata adapters for members within an assembly.
public class MemberAdapterRepository : IMemberAdapterRepository- Inheritance
- object
- MemberAdapterRepository
- Implements
Remarks
This class is responsible for creating and caching metadata adapters for various member types such as types, methods, properties, events, fields, and constructors. It ensures that each member is associated with the correct assembly and declaring type context.
Thread Safety
All public members of the type are guaranteed to be thread-safe.
Constructors
| MemberAdapterRepository(IAssembly) | Initializes a new instance of the MemberAdapterRepository class with the default factory and comparer. |
| MemberAdapterRepository(IAssembly, IEqualityComparer<MemberInfo>) | Initializes a new instance of the MemberAdapterRepository class with the default factory and custom comparer. |
| MemberAdapterRepository(IAssembly, IMemberAdapterFactory) | Initializes a new instance of the MemberAdapterRepository class with the specified factory and default comparer. |
| MemberAdapterRepository(IAssembly, IMemberAdapterFactory, IEqualityComparer<MemberInfo>) | Initializes a new instance of the MemberAdapterRepository class with the specified factory and custom comparer. |
Properties
| Assembly | Gets the assembly for which this repository manages member metadata. |
| Factory | Gets the factory used to create member adapters. |
Methods
| CreateConstructorMetadata(ConstructorInfo) | Creates constructor metadata for the specified reflection constructor. |
| CreateEventMetadata(EventInfo) | Creates event metadata for the specified reflection event. |
| CreateFieldMetadata(FieldInfo) | Creates field metadata for the specified reflection field. |
| CreateMethodMetadata(MethodInfo) | Creates method metadata for the specified reflection method. |
| CreatePropertyMetadata(PropertyInfo) | Creates property metadata for the specified reflection property. |
| CreateTypeMetadata(Type) | Creates type metadata for the specified reflection type. |
| GetConstructorMetadata(ConstructorInfo) | Gets the method metadata for the specified constructor within the assembly. |
| GetCustomAttributeMetadata(CustomAttributeData, AttributeTarget) | Gets the custom attribute metadata for the specified attribute data within the assembly. |
| GetEventMetadata(EventInfo) | Gets the event metadata for the specified event within the assembly. |
| GetFieldMetadata(FieldInfo) | Gets the field metadata for the specified field within the assembly. |
| GetMethodMetadata(MethodInfo) | Gets the method metadata for the specified method within the assembly. |
| GetParameterMetadata(ParameterInfo) | Gets the parameter metadata for the specified parameter within the assembly. |
| GetPropertyMetadata(PropertyInfo) | Gets the property metadata for the specified property within the assembly. |
| GetTypeMetadata(Type) | Gets the type metadata for the specified type within the assembly. |
