public override void CollectGarbage(ScriptGCType type) { if (activeScriptGarbageCollector != null) { activeScriptGarbageCollector.CollectGarbage(type); } }
/// <summary> /// The Active Script host calls this method to start garbage collection /// </summary> /// <param name="type">The type of garbage collection</param> public void CollectGarbage(ScriptGCType type) { if (_activeScriptGarbageCollector != null) { _activeScriptGarbageCollector.CollectGarbage(type); } }
/// <summary> /// Starts a garbage collection /// </summary> /// <param name="type">The type of garbage collection</param> private void InnerCollectGarbage(ScriptGCType type) { if (_activeScriptGarbageCollector != null) { _activeScriptGarbageCollector.CollectGarbage(type); } }
public override void CollectGarbage(ScriptGCType type) { activeScriptGarbageCollector?.CollectGarbage(type); }