public static void FireFunctionRemovedEvent(FunctionsRemovedEventArgs functionsRemovedEventArgs) { lock (_lock) { if (_functionsRemovedEvent != null) { FunctionsRemovedEventDelegate functionsRemovedEvent = _functionsRemovedEvent; functionsRemovedEvent(functionsRemovedEventArgs); } } }