コード例 #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    Themes?.Dispose();
                    Avatars?.Dispose();
                }

                disposedValue = true;
            }
        }
コード例 #2
0
ファイル: UnitOfWork.cs プロジェクト: SeverenG7/Test-System
 public virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             Answers.Dispose();
             Questions.Dispose();
             Results.Dispose();
             Tests.Dispose();
             Themes.Dispose();
             UserInfoes.Dispose();
             TempResults.Dispose();
             UserQuestions.Dispose();
             UserAnswers.Dispose();
             ApplicationRoleManagers.Dispose();
             ApplicationRoleManagers.Dispose();
         }
         _disposed = true;
     }
 }