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