C# Класс TinyEE.Functions

A container for built in functions, some of which are a part of the runtime
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

BASE64DECODE() публичный статический Метод

Decode the input string as Base64
public static BASE64DECODE ( string input ) : byte[]
input string
Результат byte[]

BASE64ENCODE() публичный статический Метод

Base64 encode the input bytes
public static BASE64ENCODE ( byte input ) : string
input byte
Результат string

BIGINT() публичный статический Метод

Convert the input to big integer
public static BIGINT ( dynamic input ) : System.Numerics.BigInteger
input dynamic
Результат System.Numerics.BigInteger

BIGINT() публичный статический Метод

Parse the input string as biginteger
public static BIGINT ( string input ) : System.Numerics.BigInteger
input string
Результат System.Numerics.BigInteger

BOOLEAN() публичный статический Метод

Convert the input to boolean
public static BOOLEAN ( dynamic input ) : bool
input dynamic
Результат bool

BOOLEAN() публичный статический Метод

Parse the input string as boolean
public static BOOLEAN ( string input ) : bool
input string
Результат bool

COMPLEX() публичный статический Метод

Generate a complex number with the real and imaginary component
public static COMPLEX ( double real, double imaginary ) : Complex
real double
imaginary double
Результат Complex

DATES() публичный статический Метод

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
Результат Range

DATES() публичный статический Метод

Generate a range of dates between left and right
public static DATES ( string leftStr, string rightStr ) : Range
leftStr string
rightStr string
Результат Range

DECIMAL() публичный статический Метод

Convert the input to decimal
public static DECIMAL ( dynamic input ) : decimal
input dynamic
Результат decimal

DECIMAL() публичный статический Метод

Parse the input string as decimal
public static DECIMAL ( string input ) : decimal
input string
Результат decimal

DOUBLE() публичный статический Метод

Convert the input to double
public static DOUBLE ( dynamic input ) : double
input dynamic
Результат double

DOUBLE() публичный статический Метод

Parse the input string as double
public static DOUBLE ( string input ) : double
input string
Результат double

DURATION() публичный статический Метод

Parse the input string as TimeSpan
public static DURATION ( string input ) : System.TimeSpan
input string
Результат System.TimeSpan

DURATION() публичный статический Метод

Parse the input string as TimeSpan using the provided format
public static DURATION ( string input, string format ) : System.TimeSpan
input string
format string
Результат System.TimeSpan

GUID() публичный статический Метод

Generate a new Guid
public static GUID ( ) : System.Guid
Результат System.Guid

INT() публичный статический Метод

Convert the input to int32
public static INT ( dynamic input ) : int
input dynamic
Результат int

INT() публичный статический Метод

Parse the input string as int32
public static INT ( string input ) : int
input string
Результат int

LONG() публичный статический Метод

Convert the input to int64
public static LONG ( dynamic input ) : long
input dynamic
Результат long

LONG() публичный статический Метод

Parse the input string as int64
public static LONG ( string input ) : long
input string
Результат long

RANDOM_DOUBLE() публичный статический Метод

Generate a random double number in the range between 0.0 and 1.0
public static RANDOM_DOUBLE ( ) : double
Результат double

RANDOM_INT() публичный статический Метод

Generate a random integer
public static RANDOM_INT ( ) : int
Результат int

SIZE() публичный статический Метод

Get the size of the list
public static SIZE ( IEnumerable values ) : dynamic
values IEnumerable
Результат dynamic

STR() публичный статический Метод

Convert the object to string. Return an empty string if the input is null
public static STR ( dynamic input ) : string
input dynamic
Результат string

SUM() публичный статический Метод

Get the size of the list
public static SUM ( ) : dynamic
Результат dynamic

SUM() публичный статический Метод

Get the size of the list
public static SUM ( IEnumerable values ) : dynamic
values IEnumerable
Результат dynamic

TIME() публичный статический Метод

Get current time in UTC
public static TIME ( ) : System.DateTime
Результат System.DateTime

TIME() публичный статический Метод

Parse the input string as DateTime
public static TIME ( string input ) : System.DateTime
input string
Результат System.DateTime

TIME() публичный статический Метод

parse the input string as DateTime using the provided format
public static TIME ( string input, string format ) : System.DateTime
input string
format string
Результат System.DateTime

TODAY() публичный статический Метод

Get current day in UTC
public static TODAY ( ) : System.DateTime
Результат System.DateTime

URI() публичный статический Метод

Parse the input string as an Uri
public static URI ( string input ) : Uri
input string
Результат System.Uri