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
writerTextWriter- The TextWriter to write the attribute to.
attributeICustomAttribute- The ICustomAttribute representing the attribute to be written.
qualifierNameQualifier- The level of qualification to apply to the attribute's name.
linkerMemberDocLinker optional- An optional delegate for linking to the documentation of a type or type's member.
Exceptions
- ArgumentNullException
- Thrown when
writerorattributeisnull.
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".
