LanguageExtensions.FormatLiteral Method

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

Definition

Formats the given literal value according to syntax rules of the language.
public static string FormatLiteral(this IProgrammingLanguage language, object value)

Parameters

language IProgrammingLanguage
The IProgrammingLanguage instance.
value object
The value to be formatted as a literal.

Returns

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

Exceptions

ArgumentNullException
Thrown when language is null.