public void Dispose() { // SystemIcons requires this if (undisposable) { return; } if (!disposed) { #if !MONOTOUCH 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; }