public void Dispose() { // SystemIcons requires this if (undisposable) { return; } if (!disposed) { #if !MONOTOUCH && !COMPATIBLE_WITH_AZUREWEBAPPS if (GDIPlus.RunningOnWindows() && (handle != IntPtr.Zero)) { GDIPlus.DestroyIcon(handle); handle = IntPtr.Zero; } #endif if (bitmap != null) { bitmap.Dispose(); bitmap = null; } GC.SuppressFinalize(this); } disposed = true; }