internal void method_0(ManagedMarkupExtension managedMarkupExtension_0) { if (this.int_0 > this.int_1) { this.CleanupInactiveExtensions(); this.int_0 = 0; } this.list_0.Add(managedMarkupExtension_0); this.int_0++; }
/// <summary> /// Register a new extension and remove extensions which reference target objects /// that have been garbage collected /// </summary> /// <param name="extension">The extension to register</param> internal void RegisterExtension(ManagedMarkupExtension extension) { // Cleanup extensions for target objects which have been garbage collected // for performance only do this periodically // if (_cleanupCount > _cleanupInterval) { CleanupInactiveExtensions(); _cleanupCount = 0; } _extensions.Add(extension); _cleanupCount++; }