private void SetNewDependent(IDisposable dependent)
{
if(_dependentContent!=null)
{
try
{
_dependentContent.Dispose();
}
catch(Exception)
{
//not worth talking to the user about it. Just abandon it in the Temp directory.
#if DEBUG
throw;
#endif
}
}
_dependentContent = dependent;
}