Esempio n. 1
0
 public bool Remove(string key)
 {
     key = PythonInterop.EscapeArgument(key, EscapeFlags.Quotes);
     PythonInterop.Eval($"del {Instance.PyName}[{key}]");
     Keys.Remove(key);
     return(!ContainsKey(key));
 }
Esempio n. 2
0
 /// <summary>
 /// Evaluates the generated class
 /// </summary>
 public void Install()
 {
     PythonInterop.Eval(this.GetCode());
 }
Esempio n. 3
0
 public bool Remove(string key)
 {
     PythonInterop.Eval($"del {Instance.PyName}[{key}]");
     Keys.Remove(key);
     return(!ContainsKey(key));
 }