CSharp.WriteAttribute Method

Namespace
Kampute.DocToolkit.Languages
Assembly
  • Kampute.DocToolkit.dll

Definition

Writes the specified attribute formatted according to C# syntax rules to the provided TextWriter.
public virtual void WriteAttribute(
	TextWriter writer,
	ICustomAttribute attribute,
	NameQualifier qualifier,
	MemberDocLinker linker = null)

Parameters

writer TextWriter
The TextWriter to write the attribute to.
attribute ICustomAttribute
The ICustomAttribute representing the attribute to be written.
qualifier NameQualifier
The level of qualification to apply to the attribute's name.
linker MemberDocLinker optional
An optional delegate for linking to the documentation of a type or type's member.

Exceptions

ArgumentNullException
Thrown when writer or attribute is null.

Remarks

This method writes the attribute's type name and its constructor arguments, if any, to the provided TextWriter. Named arguments are also written in the format "name = value".