LanguageExtensions.FormatAttribute Method

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

Definition

Formats the specified custom attribute according to syntax rules of the language.
public static string FormatAttribute(this IProgrammingLanguage language, ICustomAttribute attribute, NameQualifier qualifier)

Parameters

language IProgrammingLanguage
The IProgrammingLanguage instance.
attribute ICustomAttribute
The ICustomAttribute representing the attribute to be formatted.
qualifier NameQualifier
The level of qualification to apply to the attribute's name.

Returns

string
The representation of the specified attribute according to syntax rules of the language.

Exceptions

ArgumentNullException
Thrown when language or attribute is null.