C# 클래스 TinyEE.Functions

A container for built in functions, some of which are a part of the runtime
파일 보기 프로젝트 열기: wpq0/Tiny-Expression-Evaluator

공개 메소드들

메소드 설명
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