public RemoveFunction ( String name ) : |
||
name | String | /// The name of the function. /// |
Résultat |
public ParseContext RemoveFunction(String name)
{
if (_functions.ContainsKey(name))
{
_functions.Remove(name);
}
return this;
}
/// <summary> /// Uninstalls the plugin. /// </summary> public void Uninstall() { foreach (var function in _functions) { _context.RemoveFunction(function); } foreach (var constant in _constants) { _context.RemoveConstant(constant); } foreach (var valueType in _valueTypes) { var trash = new List <String>(); foreach (var variable in _context.Variables) { if (variable.Value.Header == valueType) { trash.Add(variable.Key); } } foreach (var entry in trash) { _context.Variables.Remove(entry); } } }