code: void clear()
      {
          if (this.insertEvents != null)
          {
              insertEvents.clear();
              insertEvents = null;
  
          }
          if (this.updateEvents != null)
          {
              updateEvents.clear();
              updateEvents = null;
  
          }
          if (this.deleteEvents != null)
          {
              deleteEvents.clear();
              deleteEvents = null;
  
          }
      }
docs: Clear.