IMemberAdapterRepository.GetMemberMetadata Method

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

Definition

Gets the member metadata for the specified member within the assembly.
IMember GetMemberMetadata(MemberInfo memberInfo)
This method has a default implementation in the interface.

Parameters

memberInfo MemberInfo
The reflection member to get metadata for.

Returns

IMember
A metadata representation of the specified member.

Exceptions

ArgumentNullException
Thrown when memberInfo is null.
ArgumentException
Thrown when memberInfo does not belong to the assembly.
NotSupportedException
Thrown when the member is not supported.

Remarks

The provided memberInfo can represent any member type, including types, constructors, methods, properties, events, and fields. If the memberInfo corresponds to an accessor of an extension property, the method will resolve and return the appropriate property metadata.