C# Class PSint.Func

Afficher le fichier Open project: LuckyGeck/PSint Class Usage Examples

Méthodes publiques

Свойство Type Description
globalVrb List
sInput string
sOutput string
sReturn string

Méthodes publiques

Méthode Description
Func ( String sCode ) : System

Constructor for Func class. (Without init params)

Func ( String sCode, String sParam ) : System

Constructor for Func class.

Run ( frMain frmain1 ) : string

This method Runs the function.

getGlVar ( string sName ) : string

Gets the value of global var from the list with the name equal to sName

getVar ( string sName ) : string

Gets the value of var from the list with the name equal to sName

setGlVar ( Base param ) : void

Sets the value of param to global var from the list, which name is equal to param's name. If such var in list doesn't exists - it is added.

setVar ( Base param ) : void

Sets the value of param to var from the list, which name is equal to param's name. If such var in list doesn't exists - it is added.

Private Methods

Méthode Description
addConsts ( ) : void

This method inits Vars list and adds consts to it.

addGlVar ( Base param ) : void

Makes a copy of param global var and adds it to the List.

addVar ( Base param ) : void

Makes a copy of param var and adds it to the List.

varExists ( string sName ) : int

Checks if a var with sName already exists.

varGlExists ( string sName ) : int

Checks if a global var with sName already exists.

Method Details

Func() public méthode

Constructor for Func class. (Without init params)
public Func ( String sCode ) : System
sCode String Source of the function.
Résultat System

Func() public méthode

Constructor for Func class.
public Func ( String sCode, String sParam ) : System
sCode String Source of the function.
sParam String Init params for this function.
Résultat System

Run() public méthode

This method Runs the function.
public Run ( frMain frmain1 ) : string
frmain1 frMain Link to the main form.
Résultat string

getGlVar() public méthode

Gets the value of global var from the list with the name equal to sName
public getGlVar ( string sName ) : string
sName string The name of the param to get.
Résultat string

getVar() public méthode

Gets the value of var from the list with the name equal to sName
public getVar ( string sName ) : string
sName string The name of the param to get.
Résultat string

setGlVar() public méthode

Sets the value of param to global var from the list, which name is equal to param's name. If such var in list doesn't exists - it is added.
public setGlVar ( Base param ) : void
param Base Base-type variable
Résultat void

setVar() public méthode

Sets the value of param to var from the list, which name is equal to param's name. If such var in list doesn't exists - it is added.
public setVar ( Base param ) : void
param Base Base-type variable
Résultat void

Property Details

globalVrb public_oe static_oe property

public static List globalVrb
Résultat List

sInput public_oe property

public string sInput
Résultat string

sOutput public_oe property

public string sOutput
Résultat string

sReturn public_oe property

public string sReturn
Résultat string