C# Class ExoWeb.Templates.JavaScript.JavaScriptHelpers

ファイルを表示 Open project: vc3/ExoWeb Class Usage Examples

Public Methods

Method Description
IsTruthy ( object value ) : bool
ParseConstant ( string text ) : object

Parses a JavaScript constant value.

TryParseConstant ( string text, object &result ) : bool

Tries to parse a JavaScript constant value.

Method Details

IsTruthy() public static method

public static IsTruthy ( object value ) : bool
value object
return bool

ParseConstant() public static method

Parses a JavaScript constant value.
public static ParseConstant ( string text ) : object
text string
return object

TryParseConstant() public static method

Tries to parse a JavaScript constant value.
public static TryParseConstant ( string text, object &result ) : bool
text string
result object
return bool