public void Dispose() { if (_files != null) { _files.Clear(); } if (_freeFiles != null) { _freeFiles.Clear(); } }
internal static void CopyFrom(KeyedCollection <string, ServiceLoadMetricDescription> source, KeyedCollection <string, ServiceLoadMetricDescription> target) { if (source != null) { target.Clear(); source.ForEach(m => { ServiceLoadMetricDescription casted; if (m is StatefulServiceLoadMetricDescription) { casted = new StatefulServiceLoadMetricDescription(m as StatefulServiceLoadMetricDescription); } else if (m is StatelessServiceLoadMetricDescription) { casted = new StatelessServiceLoadMetricDescription(m as StatelessServiceLoadMetricDescription); } else { casted = new ServiceLoadMetricDescription(m); } target.Add(casted); }); } }
public void Clear() { lock (_serializedItemsLock) { if (_serializedItems != null) { _serializedItems.Clear(); } BaseClear(); _dirty = true; } }
public void Clear() { sections.Clear(); }
public void Clear() { m_Panels.Clear(); }