Skip to content

ReflectionFormatter.Format Method ​

Overloads ​

NameDescription
Format(MemberInfo)Formats the specified MemberInfo.
Format(StringBuilder, MemberInfo)Formats the specified MemberInfo.
Format(TextWriter, MemberInfo)Formats the specified MemberInfo.
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(MemberInfo) ​

Formats the specified MemberInfo.

c#
public string Format(MemberInfo member);

View source

Parameters ​

NameTypeDescription
memberMemberInfoThe member.

Returns ​

String

A string representing member.

Format(StringBuilder, MemberInfo) ​

Formats the specified MemberInfo.

c#
public void Format(StringBuilder output, MemberInfo member);

View source

Parameters ​

NameTypeDescription
outputStringBuilderA StringBuilder to append a string representing member to.
memberMemberInfoThe member.

Format(TextWriter, MemberInfo) ​

Formats the specified MemberInfo.

c#
public void Format(TextWriter output, MemberInfo member);

View source

Parameters ​

NameTypeDescription
outputTextWriterA TextWriter to write a string representing member to.
memberMemberInfoThe member.

Format(TextWriter, ConstructorInfo) ​

Formats the specified ConstructorInfo.

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

Parameters ​

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

Format(TextWriter, EventInfo) ​

Formats the specified EventInfo.

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

Parameters ​

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

Format(TextWriter, FieldInfo) ​

Formats the specified FieldInfo.

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

Parameters ​

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

Format(TextWriter, MethodInfo) ​

Formats the specified MethodInfo.

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

Parameters ​

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

Format(TextWriter, PropertyInfo) ​

Formats the specified PropertyInfo.

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

Parameters ​

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

Format(TextWriter, Type) ​

Formats the specified Type.

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

Parameters ​

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