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
languageIProgrammingLanguage- The IProgrammingLanguage instance.
valueobject- 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
languageisnull.
