コード例 #1
0
 public void Dispose()
 {
     m_Reference = null;
     if (m_Holder != null)
     {
         m_Holder.Removed = true;
         m_Holder         = null;
     }
     if (m_Handles != null)
     {
         foreach (var h in m_Handles)
         {
             h?.Dispose();
         }
         m_Handles = null;
     }
 }
コード例 #2
0
 internal ReferenceHandle(object obj, HolderBase holder)
 {
     m_Reference = obj;
     m_Holder    = holder;
 }