MemberAdapter<T> Class

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

Definition

An abstract base class for adapters that wrap reflected members.
public abstract class MemberAdapter<T> : AttributeAwareMetadataAdapter<T>, IMember
	where T : MemberInfo
Inheritance
Implements
Inherited by

Type Parameters

T
The type of the reflected member.

Thread Safety

All public members of the type are guaranteed to be thread-safe.

Constructors

MemberAdapter<T>(T)Initializes a new instance of the MemberAdapter<T> class.

Properties

AssemblyGets the assembly that contains the member.
CodeReferenceGets the code reference for the member.
DeclaringTypeGets the declaring type of the member, if any.
IsDirectDeclarationGets a value indicating whether the member represents a direct declaration.
IsPublicGets a value indicating whether the member is public.
IsSpecialNameGets a value indicating whether the member is a special name.
IsStaticGets a value indicating whether the member is static.
IsUnsafeGets a value indicating whether this member is declared as unsafe.
IsVisibleGets a value indicating whether the member is visible whithin its declaring context.
NameGets the name of the metadata element.
NamespaceGets the namespace of the member.
ReflectedTypeGets the type that was used to obtain this member.
VisibilityGets the visibility level of the member.

Methods

GetCustomAttributes()Retrieves the underlying custom attributes of the member.
GetMemberVisibility()Retrieves the visibility of the member.
GetReflectedType()Retrieves the metadata type that was used to obtain this member.

Explicit Interface Implementations

IMetadataAdapter<T>.Represents(MemberInfo)Determines whether this metadata adapter represents the specified reflection element.

Extension Methods

GetInheritedMember(this IMember)Retrieves the member that this member directly inherits from.
GetMemberDefinition(this IMember)Retrieves the definition of the member, resolving any constructed or decorated forms to their underlying definitions.
TryGetOwnTypeParameters(this IMember, out IEnumerable<ITypeParameter>)Attempts to get the type parameters declared directly by the specified member if it is generic.