Skip to content

DisplayNameFormatter.Format Method ​

Overloads ​

NameDescription
Format(TextWriter, ConstructorInfo)Formats the specified ConstructorInfo.
Format(TextWriter, EventInfo)Formats the specified EventInfo.
Format(TextWriter, FieldInfo)Formats the specified FieldInfo.
Format(TextWriter, MethodInfo)Formats the specified MethodInfo.
Format(TextWriter, PropertyInfo)Formats the specified PropertyInfo.
Format(TextWriter, Type)Formats the specified Type.

Format(TextWriter, ConstructorInfo) ​

Formats the specified ConstructorInfo.

c#
protected override void Format(TextWriter output, ConstructorInfo constructor);

View source

Parameters ​

NameTypeDescription
outputTextWriterA TextWriter to write a string representing constructor to.
constructorConstructorInfoThe constructor.

Format(TextWriter, EventInfo) ​

Formats the specified EventInfo.

c#
protected override void Format(TextWriter output, EventInfo @event);

View source

Parameters ​

NameTypeDescription
outputTextWriterA TextWriter to write a string representing event to.
eventEventInfoThe event.

Format(TextWriter, FieldInfo) ​

Formats the specified FieldInfo.

c#
protected override void Format(TextWriter output, FieldInfo field);

View source

Parameters ​

NameTypeDescription
outputTextWriterA TextWriter to write a string representing field to.
fieldFieldInfoThe field.

Format(TextWriter, MethodInfo) ​

Formats the specified MethodInfo.

c#
protected override void Format(TextWriter output, MethodInfo method);

View source

Parameters ​

NameTypeDescription
outputTextWriterA TextWriter to write a string representing method to.
methodMethodInfoThe method.

Format(TextWriter, PropertyInfo) ​

Formats the specified PropertyInfo.

c#
protected override void Format(TextWriter output, PropertyInfo property);

View source

Parameters ​

NameTypeDescription
outputTextWriterA TextWriter to write a string representing property to.
propertyPropertyInfoThe property.

Format(TextWriter, Type) ​

Formats the specified Type.

c#
protected override void Format(TextWriter output, Type type);

View source

Parameters ​

NameTypeDescription
outputTextWriterA TextWriter to write a string representing type to.
typeTypeThe type.