Exemple #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));
 }
Exemple #2
0
 /// <summary>
 /// Evaluates the generated class
 /// </summary>
 public void Install()
 {
     PythonInterop.Eval(this.GetCode());
 }
Exemple #3
0
 public bool Remove(string key)
 {
     PythonInterop.Eval($"del {Instance.PyName}[{key}]");
     Keys.Remove(key);
     return(!ContainsKey(key));
 }