C# Class TinyEE.Functions

A container for built in functions, some of which are a part of the runtime
Mostra file Open project: wpq0/Tiny-Expression-Evaluator

Public Methods

Method Description
BASE64DECODE ( string input ) : byte[]

Decode the input string as Base64

BASE64ENCODE ( byte input ) : string

Base64 encode the input bytes

BIGINT ( dynamic input ) : System.Numerics.BigInteger

Convert the input to big integer

BIGINT ( string input ) : System.Numerics.BigInteger

Parse the input string as biginteger

BOOLEAN ( dynamic input ) : bool

Convert the input to boolean

BOOLEAN ( string input ) : bool

Parse the input string as boolean

COMPLEX ( double real, double imaginary ) : Complex

Generate a complex number with the real and imaginary component

DATES ( System.DateTime left, System.DateTime right ) : Range

Generate a range of dates between left and right

DATES ( string leftStr, string rightStr ) : Range

Generate a range of dates between left and right

DECIMAL ( dynamic input ) : decimal

Convert the input to decimal

DECIMAL ( string input ) : decimal

Parse the input string as decimal

DOUBLE ( dynamic input ) : double

Convert the input to double

DOUBLE ( string input ) : double

Parse the input string as double

DURATION ( string input ) : System.TimeSpan

Parse the input string as TimeSpan

DURATION ( string input, string format ) : System.TimeSpan

Parse the input string as TimeSpan using the provided format

GUID ( ) : System.Guid

Generate a new Guid

INT ( dynamic input ) : int

Convert the input to int32

INT ( string input ) : int

Parse the input string as int32

LONG ( dynamic input ) : long

Convert the input to int64

LONG ( string input ) : long

Parse the input string as int64

RANDOM_DOUBLE ( ) : double

Generate a random double number in the range between 0.0 and 1.0

RANDOM_INT ( ) : int

Generate a random integer

SIZE ( IEnumerable values ) : dynamic

Get the size of the list

STR ( dynamic input ) : string

Convert the object to string. Return an empty string if the input is null

SUM ( ) : dynamic

Get the size of the list

SUM ( IEnumerable values ) : dynamic

Get the size of the list

TIME ( ) : System.DateTime

Get current time in UTC

TIME ( string input ) : System.DateTime

Parse the input string as DateTime

TIME ( string input, string format ) : System.DateTime

parse the input string as DateTime using the provided format

TODAY ( ) : System.DateTime

Get current day in UTC

URI ( string input ) : Uri

Parse the input string as an Uri

Method Details

BASE64DECODE() public static method

Decode the input string as Base64
public static BASE64DECODE ( string input ) : byte[]
input string
return byte[]

BASE64ENCODE() public static method

Base64 encode the input bytes
public static BASE64ENCODE ( byte input ) : string
input byte
return string

BIGINT() public static method

Convert the input to big integer
public static BIGINT ( dynamic input ) : System.Numerics.BigInteger
input dynamic
return System.Numerics.BigInteger

BIGINT() public static method

Parse the input string as biginteger
public static BIGINT ( string input ) : System.Numerics.BigInteger
input string
return System.Numerics.BigInteger

BOOLEAN() public static method

Convert the input to boolean
public static BOOLEAN ( dynamic input ) : bool
input dynamic
return bool

BOOLEAN() public static method

Parse the input string as boolean
public static BOOLEAN ( string input ) : bool
input string
return bool

COMPLEX() public static method

Generate a complex number with the real and imaginary component
public static COMPLEX ( double real, double imaginary ) : Complex
real double
imaginary double
return Complex

DATES() public static method

Generate a range of dates between left and right
public static DATES ( System.DateTime left, System.DateTime right ) : Range
left System.DateTime
right System.DateTime
return Range

DATES() public static method

Generate a range of dates between left and right
public static DATES ( string leftStr, string rightStr ) : Range
leftStr string
rightStr string
return Range

DECIMAL() public static method

Convert the input to decimal
public static DECIMAL ( dynamic input ) : decimal
input dynamic
return decimal

DECIMAL() public static method

Parse the input string as decimal
public static DECIMAL ( string input ) : decimal
input string
return decimal

DOUBLE() public static method

Convert the input to double
public static DOUBLE ( dynamic input ) : double
input dynamic
return double

DOUBLE() public static method

Parse the input string as double
public static DOUBLE ( string input ) : double
input string
return double

DURATION() public static method

Parse the input string as TimeSpan
public static DURATION ( string input ) : System.TimeSpan
input string
return System.TimeSpan

DURATION() public static method

Parse the input string as TimeSpan using the provided format
public static DURATION ( string input, string format ) : System.TimeSpan
input string
format string
return System.TimeSpan

GUID() public static method

Generate a new Guid
public static GUID ( ) : System.Guid
return System.Guid

INT() public static method

Convert the input to int32
public static INT ( dynamic input ) : int
input dynamic
return int

INT() public static method

Parse the input string as int32
public static INT ( string input ) : int
input string
return int

LONG() public static method

Convert the input to int64
public static LONG ( dynamic input ) : long
input dynamic
return long

LONG() public static method

Parse the input string as int64
public static LONG ( string input ) : long
input string
return long

RANDOM_DOUBLE() public static method

Generate a random double number in the range between 0.0 and 1.0
public static RANDOM_DOUBLE ( ) : double
return double

RANDOM_INT() public static method

Generate a random integer
public static RANDOM_INT ( ) : int
return int

SIZE() public static method

Get the size of the list
public static SIZE ( IEnumerable values ) : dynamic
values IEnumerable
return dynamic

STR() public static method

Convert the object to string. Return an empty string if the input is null
public static STR ( dynamic input ) : string
input dynamic
return string

SUM() public static method

Get the size of the list
public static SUM ( ) : dynamic
return dynamic

SUM() public static method

Get the size of the list
public static SUM ( IEnumerable values ) : dynamic
values IEnumerable
return dynamic

TIME() public static method

Get current time in UTC
public static TIME ( ) : System.DateTime
return System.DateTime

TIME() public static method

Parse the input string as DateTime
public static TIME ( string input ) : System.DateTime
input string
return System.DateTime

TIME() public static method

parse the input string as DateTime using the provided format
public static TIME ( string input, string format ) : System.DateTime
input string
format string
return System.DateTime

TODAY() public static method

Get current day in UTC
public static TODAY ( ) : System.DateTime
return System.DateTime

URI() public static method

Parse the input string as an Uri
public static URI ( string input ) : Uri
input string
return System.Uri