private void OnDispose() { if (_drawableCache != null) { foreach (var p in _drawableCache) { p.Value?.Dispose(); } _drawableCache.Clear(); _drawableCache = null; } if (_windDirectionBitmapCache != null) { foreach (var p in _windDirectionBitmapCache) { p.Value?.Recycle(); } _windDirectionBitmapCache.Clear(); _windDirectionBitmapCache = null; } _appCompatDrawableUtil = null; _drawableUtil = null; _windTools = null; }
private WindTools GetWindTools() { return(_windTools ?? (_windTools = new WindTools())); }