Dispose() публичный Метод

public Dispose ( ) : void
Результат void
Пример #1
0
 public void Dispose()
 {
     if (_sites != null)
     {
         for (int i = 0; i < _sites.Count; i++)
         {
             Site site = _sites [i];
             site.Dispose();
         }
         _sites.Clear();
         _sites = null;
     }
 }
Пример #2
0
 //jf is never called
 public void Dispose()
 {
     if (Debug.isDebugBuild)
     {
         Debug.Log("ERROR, SiteList.Dispose!!");                               //jf
     }
     if (_sites != null)
     {
         for (int i = 0; i < _sites.Count; i++)
         {
             Site site = _sites [i];
             site.Dispose();
         }
         _sites.Clear();
         _sites = null;
     }
 }