Пример #1
0
 /// <summary>
 /// Cleans up (if there is anything to clean)
 /// </summary>
 internal protected virtual void Cleanup()
 {
     m_cast = null;
     if (m_targets != null)
     {
         m_targets.Dispose();
         m_targets = null;
     }
 }
Пример #2
0
 /// <summary>Cleans up (if there is anything to clean)</summary>
 protected internal virtual void Cleanup()
 {
     m_cast = null;
     if (m_targets == null)
     {
         return;
     }
     m_targets.Dispose();
     m_targets = null;
 }