PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Write­Reflection­Name­Extensions Class / Write­Reflection­Name­Extensions Methods / Write­Reflection­Name­Extensions.​Get­Reflection­Name Method / Write­Reflection­Name­Extensions.​Get­Reflection­Name Method (IWrite­Reflection­Name, Reflection­Name­Options, Name­Mapper)

WriteReflectionNameExtensions.GetReflectionName Method (IWriteReflectionName, ReflectionNameOptions, NameMapper)

Gets the name of a given declaration, constructed using given options.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: (
public static string GetReflectionName(
	this IWriteReflectionName declaration,
	ReflectionNameOptions options,
	NameMapper mapper


Type: PostSharp.Sdk.CodeModel.IWriteReflectionName
A declarations.
Type: PostSharp.Sdk.CodeModel.ReflectionNameOptions
Options controlling the way how the name is constructed.
Type: PostSharp.Sdk.CodeModel.NameMapper
A NameMapper.

Return Value

Type: String
The name of declaration.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IWriteReflectionName. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also