IMember Interface

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

Definition

Defines a contract for accessing member metadata.
public interface IMember : IWithCustomAttributes, IMetadataAdapter<MemberInfo>
Extends
Implemented by

Remarks

This interface serves as the base for all member types derived from MemberInfo.

Properties

AssemblyGets the assembly that contains the member.
CodeReferenceGets the code reference for the member.
DeclaringTypeGets the declaring type of the member, if any.
IsCompilerGeneratedGets a value indicating whether the member is generated by the compiler.
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 unqualified name of the member.
NamespaceGets the namespace of the member.
ReflectedTypeGets the type that was used to obtain this member.
VisibilityGets the visibility level of the member.

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.