C# Class Scriban.Runtime.ScriptValueConverter

Show file Open project: lunet-io/scriban Class Usage Examples

Public Methods

Method Description
ToBool ( object value ) : bool
ToDouble ( SourceSpan span, object value ) : double
ToInt ( SourceSpan span, object value ) : int
ToObject ( SourceSpan span, object value, Type destinationType ) : object
ToString ( SourceSpan span, object value ) : string

Method Details

ToBool() public static method

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

ToDouble() public static method

public static ToDouble ( SourceSpan span, object value ) : double
span Scriban.Parsing.SourceSpan
value object
return double

ToInt() public static method

public static ToInt ( SourceSpan span, object value ) : int
span Scriban.Parsing.SourceSpan
value object
return int

ToObject() public static method

public static ToObject ( SourceSpan span, object value, Type destinationType ) : object
span Scriban.Parsing.SourceSpan
value object
destinationType System.Type
return object

ToString() public static method

public static ToString ( SourceSpan span, object value ) : string
span Scriban.Parsing.SourceSpan
value object
return string