void OnDisable() { // Command blocks can also be completed via the C# 'using' construct for convenience using (var block = m_Graph.CreateCommandBlock()) { block.Disconnect(m_Connection); block.ReleaseDSPNode(m_Node); } m_Graph.RemoveNodeEventHandler(m_HandlerID); m_Output.Dispose(); }