Source/OxyPlot.Avalonia/CanvasRenderContext.cs
/// <summary>
/// Cleans up resources not in use.
/// </summary>
/// <remarks>This method is called at the end of each rendering.</remarks>
Cleans up resources not in use.
Cleans up resources not in use .
public void CleanUp()
        {
            var imagesToRelease = imageCache.Keys.Where(i => !imagesInUse.Contains(i)).ToList();
            foreach (var i in imagesToRelease)
            {
                imageCache.Remove(i);
            }
            imagesInUse.Clear();
        }
public void CleanUp ( ) { var imagesToRelease = imageCache . Keys . Where ( i => ! imagesInUse . Contains ( i ) ) . ToList ( ) ; foreach ( var i in imagesToRelease ) { imageCache . Remove ( i ) ; } imagesInUse . Clear ( ) ; }
Cleans up resources not in use.
Cleans up resources not in use .
// Find the images in the cache that has not been used since last call to this method // Remove the images from the cache
remarks
This method is called at the end of each rendering.
This method is called at the end of each rendering .