MethodGroupDeclaration Class |
Implements the functionalities that are common to PropertyDeclaration
and EventDeclaration, which are both lexical collections of
method semantics (MethodSemanticDeclaration).
System.Object
PostSharp.Sdk.CodeModel.Element
PostSharp.Sdk.CodeModel.Declaration
PostSharp.Sdk.CodeModel.MetadataDeclaration
PostSharp.Sdk.CodeModel.NamedMetadataDeclaration
PostSharp.Sdk.CodeModel.NamedPositionedMetadataDeclaration
PostSharp.Sdk.CodeModel.MethodGroupDeclaration
PostSharp.Sdk.CodeModel.EventDeclaration
PostSharp.Sdk.CodeModel.PropertyDeclaration
PostSharp.Sdk.CodeModel.Element
PostSharp.Sdk.CodeModel.Declaration
PostSharp.Sdk.CodeModel.MetadataDeclaration
PostSharp.Sdk.CodeModel.NamedMetadataDeclaration
PostSharp.Sdk.CodeModel.NamedPositionedMetadataDeclaration
PostSharp.Sdk.CodeModel.MethodGroupDeclaration
PostSharp.Sdk.CodeModel.EventDeclaration
PostSharp.Sdk.CodeModel.PropertyDeclaration
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public abstract class MethodGroupDeclaration : NamedPositionedMetadataDeclaration, IMember, IMetadataDeclaration, IDeclaration, IElement, IModuleElement, ITaggable, IWriteReflectionName, INamed
The MethodGroupDeclaration type exposes the following members.
Name | Description | |
---|---|---|
CustomDebuggingInformation | (Inherited from Declaration.) | |
DeclaringType |
Gets the parent TypeDefDeclaration.
| |
IsOriginal |
Determines whether the current declaration existed in the source assembly.
(Inherited from MetadataDeclaration.) | |
IsStatic |
Determines whether the current member is static.
| |
MetadataToken |
Gets or sets the token of the current declaration.
(Inherited from MetadataDeclaration.) | |
Name |
Gets or sets the name of the current declaration.
(Inherited from NamedMetadataDeclaration.) | |
Ordinal | (Inherited from NamedPositionedMetadataDeclaration.) | |
OriginalDeclaration |
When the declaration represents another declaration in the source assembly, this property refers to this declaration.
When using GetReflectionObject(Type[], Type[], BindingOptions), the original declaration should actually be retrieved.
(Inherited from MetadataDeclaration.) | |
OriginalName | (Inherited from NamedMetadataDeclaration.) | |
ParentMember |
Gets the parent member of the current declaration.
(Overrides MetadataDeclaration.ParentMember.) | |
ParentType |
Gets the parent type of the current declaration.
(Overrides MetadataDeclaration.ParentType.) | |
Visibility |
Gets the visibility of the current element.
|
Name | Description | |
---|---|---|
ClearCache |
Clear the cache (typically mapping to System.Reflection or,
if the current element is a reference, to the related definition)
of the current Element and all its children.
(Inherited from Element.) | |
Dispose | Obsolete. (Inherited from MetadataDeclaration.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAccessor |
Gets an accessor method.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetTag<T> |
Gets a tag associated with the current declaration.
(Inherited from MetadataDeclaration.) | |
GetTokenType |
Gets the TokenType of the derived declaration.
(Inherited from MetadataDeclaration.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NotifyChildPropertyChanged |
Method invoked when a property of a child has been changed.
(Inherited from Element.) | |
OnPropertyChanged |
Method invoked when a property of the current instance has been changed.
(Inherited from Element.) | |
SetTag<T> |
Set a tag to the current declaration.
(Inherited from MetadataDeclaration.) | |
ToString | (Overrides NamedMetadataDeclaration.ToString().) | |
WriteReflectionName(StringBuilder, ReflectionNameOptions) |
Writes the name of the current declaration to a StringBuilder.
| |
WriteReflectionName(StringBuilder, ReflectionNameOptions, NameMapper) |
Writes the name of the current declaration to a StringBuilder and
specifies a NameMapper.
|
Name | Description | |
---|---|---|
GetDisplayName |
Gets the name of a given declaration as it should be displayed to the user.
(Defined by WriteReflectionNameExtensions.) | |
GetReflectionName() | 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.) | |
GetReflectionName(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.) | |
GetReflectionName(ReflectionNameOptions, NameMapper) | Overloaded.
Gets the name of a given declaration, constructed using given options.
(Defined by WriteReflectionNameExtensions.) | |
IsExternallyVisible |
Determines whether a member is visible outside its assembly.
(Defined by VisibilityHelper.) | |
IsPublic |
Determines whether a member is visible outside its assembly.
(Defined by VisibilityHelper.) | |
IsVisible |
Determines whether a member is visible from a given scope.
(Defined by VisibilityHelper.) |