protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { Themes?.Dispose(); Avatars?.Dispose(); } disposedValue = true; } }
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; } }