MemberAdapterFactory Class

Namespace
Kampute.DocToolkit.Metadata.Adapters
Assembly
  • Kampute.DocToolkit.dll

Definition

Provides a factory for creating member metadata adapters of reflection members.
public class MemberAdapterFactory : IMemberAdapterFactory
Inheritance
Implements

Remarks

This factory is responsible for creating appropriate metadata adapters for various reflection members, including types, methods, properties, events, fields, parameters, and custom attributes. It abstracts the instantiation logic, ensuring that the correct adapter is created based on the type of member being processed.

Properties

InstanceGets the singleton instance of the MemberAdapterFactory.

Methods

CreateConstructorMetadata(IType, ConstructorInfo)Creates the constructor metadata for the specified constructor within the given declaring type.
CreateCustomAttributeMetadata(CustomAttributeData, AttributeTarget)Creates the custom attribute metadata for the specified attribute data.
CreateEventMetadata(IType, EventInfo)Creates the event metadata for the specified event within the given declaring type.
CreateFieldMetadata(IType, FieldInfo)Creates the field metadata for the specified field within the given declaring type.
CreateMethodMetadata(IType, MethodInfo)Creates the method metadata for the specified method within the given declaring type.
CreateParameterMetadata(IMember, ParameterInfo)Creates the parameter metadata for the specified parameter within the given member.
CreatePropertyMetadata(IType, PropertyInfo)Creates the property metadata for the specified property within the given declaring type.
CreateSpecificTypeMetadata(object, Type)Creates type metadata for the specified type, using the provided declaring entity.
CreateTypeMetadata(IAssembly, Type)Creates the type metadata for the specified type within the given assembly.
CreateTypeMetadata(IType, Type)Creates the type metadata for the specified type nested within the given declaring type.