PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Name­Mapper Class / Name­Mapper Methods / Name­Mapper.​Get­Name Method

NameMapper.GetName Method

Gets the name of a declaration.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public virtual string GetName(
	INamedMetadataDeclaration declaration,
	ReflectionNameOptions options
)

Parameters

declaration
Type: PostSharp.Sdk.CodeModel.INamedMetadataDeclaration
A declaration.
options
Type: PostSharp.Sdk.CodeModel.ReflectionNameOptions
Options.

Return Value

Type: String
The name (or obfuscated/mapped name) of declaration.
See Also