HtmlForgeX

API Reference

Class

JavaScriptRaw

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed
Attributes
JsonConverter(typeof(JavaScriptRawConverter))

Represents raw JavaScript that should be emitted verbatim inside an options object. Useful for function-valued configuration options where standard JSON cannot represent functions.

Inheritance

  • Object
  • JavaScriptRaw

Constructors

public JavaScriptRaw(String code) #

Initializes a new instance of the JavaScriptRaw class.

Parameters

code System.String requiredposition: 0
Raw JavaScript to emit (for example, function (p) { return p; }).

Methods

public override String ToString() #
Returns: String

Properties

public String Code { get; } #

Gets the raw JavaScript code.