PostSharp SDK 6.9 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / IMember Interface

IMember Interface

Defines the semantics of a type member (DeclaringType and [!:IMember.Name] properties).

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.9.1.0 (6.9.1.0)
Syntax
C#
public interface IMember : IMetadataDeclaration, 
	IDeclaration, IElement, IModuleElement, ITaggable, IWriteReflectionName, 
	INamed

The IMember type exposes the following members.

Properties
  NameDescription
Public propertyCustomAttributes
Gets the collection of custom attributes.
(Inherited from IMetadataDeclaration.)
Public propertyDeclaringAssembly
Gets the declaring assembly.
(Inherited from IModuleElement.)
Public propertyDeclaringType
Gets the declaring type.
Public propertyDomain
Gets the Domain to which the current element belongs.
(Inherited from IElement.)
Public propertyIsStatic
Determines whether the current member is static.
Public propertyMetadataToken
Gets the metadata token of the current declaration.
(Inherited from IMetadataDeclaration.)
Public propertyModule
Gets the declaring module.
(Inherited from IModuleElement.)
Public propertyName (Inherited from INamed.)
Public propertyParent
Gets the direct parent of the current element.
(Inherited from IElement.)
Public propertyParentMember
Gets the parent member of the current declaration.
(Inherited from IMetadataDeclaration.)
Public propertyParentType
Gets the parent type of the current declaration.
(Inherited from IMetadataDeclaration.)
Public propertyVisibility
Gets the Visibility of the current member.
Methods
  NameDescription
Public methodGetReflectionObject
Gets the system, runtime object (Type, FieldInfo, MethodInfo, ParameterInfo, ...) corresponding to the current declaration.
(Inherited from IMetadataDeclaration.)
Public methodGetTag<T>
Gets a tag associated with the current declaration.
(Inherited from ITaggable.)
Public methodGetTokenType
Gets the metadata token type of the current declaration.
(Inherited from IMetadataDeclaration.)
Public methodSetTag<T>
Set a tag to the current declaration.
(Inherited from ITaggable.)
Public methodTranslate
Translates the current element so that it can be used in a given module.
(Inherited from IModuleElement.)
Public methodWriteReflectionName(StringBuilder, ReflectionNameOptions)
Writes the name of the current declaration to a StringBuilder.
(Inherited from IWriteReflectionName.)
Public methodWriteReflectionName(StringBuilder, ReflectionNameOptions, NameMapper)
Writes the name of the current declaration to a StringBuilder and specifies a NameMapper.
(Inherited from IWriteReflectionName.)
Extension Methods
  NameDescription
Public Extension MethodGetDisplayName
Gets the name of a given declaration as it should be displayed to the user.
(Defined by WriteReflectionNameExtensions.)
Public Extension MethodGetReflectionName()Overloaded.
Gets the name of a given declaration and returns a string that is compatible with the result of the ToString method of system reflection objects.
(Defined by WriteReflectionNameExtensions.)
Public Extension MethodGetReflectionName(ReflectionNameOptions)Overloaded.
Gets the name of a given declaration and returns a string that is compatible with the result of the ToString method of system reflection objects.
(Defined by WriteReflectionNameExtensions.)
Public Extension MethodGetReflectionName(ReflectionNameOptions, NameMapper)Overloaded.
Gets the name of a given declaration, constructed using given options.
(Defined by WriteReflectionNameExtensions.)
Public Extension MethodIsExternallyVisible
Determines whether a member is visible outside its assembly.
(Defined by VisibilityHelper.)
Public Extension MethodIsPublic
Determines whether a member is visible outside its assembly.
(Defined by VisibilityHelper.)
Public Extension MethodIsVisible
Determines whether a member is visible from a given scope.
(Defined by VisibilityHelper.)
See Also