コード例 #1
0
ファイル: RepositoryWatcher.cs プロジェクト: lin5/Unity
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (!disposed)
         {
             disposed = true;
             Stop();
             if (nativeInterface != null)
             {
                 nativeInterface.Dispose();
                 nativeInterface = null;
             }
         }
     }
 }
コード例 #2
0
        private void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (!disposed)
                {
                    disposed              = true;
                    HeadChanged           = null;
                    IndexChanged          = null;
                    ConfigChanged         = null;
                    RepositoryCommitted   = null;
                    RepositoryChanged     = null;
                    LocalBranchesChanged  = null;
                    RemoteBranchesChanged = null;

                    Stop();
                    if (nativeInterface != null)
                    {
                        nativeInterface.Dispose();
                        nativeInterface = null;
                    }
                }
            }
        }