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­Display­Name Method

WriteReflectionNameExtensions.GetDisplayName Method

Gets the name of a given declaration as it should be displayed to the user.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: (
public static string GetDisplayName(
	this IWriteReflectionName declaration


Type: PostSharp.Sdk.CodeModel.IWriteReflectionName
A declaration

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