/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Utils/Shell/ContextMenuItem.cs
28 строк
556 B
Steve
Code Quality: Upgrade dependencies (#16741)
09 фев 2025, 05:02
Не верифицирован
09 фев 2025, 05:02
273c947
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. namespace Files.App.Utils.Shell { /// <summary> /// Represents an item for Win32 context menu. /// </summary> public partial class ContextMenuItem : Win32ContextMenuItem, IDisposable { public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (disposing && SubItems is not null) { foreach (var subItem in SubItems) (subItem as IDisposable)?.Dispose(); SubItems = null; } } } }