Interpreter.SetValue C# (CSharp) Méthode

SetValue() public méthode

public SetValue ( string name, object val ) : void
name string
val object
Résultat void
    public void SetValue(string name, object val) {
        varTable[name] = val;
    }   
    

Usage Example

Exemple #1
0
 public static void Main(string[] args) {
     GuiConsoleForm form = new GuiConsoleForm(caption,prompt,new StringHandler(ProcessLine));
     GuiConsole console = new GuiConsole(form);
     Interpreter.Console = console;
     console.Write(caption+"\n"+prompt);        
     interp = new Interpreter();
     string defs = args.Length > 0 ? args[0] : interp.DefaultIncludeFile();
     interp.ReadIncludeFile(defs);        
     interp.SetValue("form",form);
     interp.SetValue("text",form.TextBox);
     Application.Run(form);
 }   
All Usage Examples Of Interpreter::SetValue