/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/FileSystemWatcherWrapper.cs
31 строка
859 B
Michael Jolley
CmdPal: Null pattern matching based on `is` expression rather than overridable operators (#40972)
18 авг 2025, 14:07
Не верифицирован
18 авг 2025, 14:07
6acb793
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.ObjectModel; using System.IO; namespace Microsoft.CmdPal.Ext.Apps.Storage; // File System Watcher Wrapper class which implements the IFileSystemWatcherWrapper interface public sealed partial class FileSystemWatcherWrapper : FileSystemWatcher, IFileSystemWatcherWrapper { public FileSystemWatcherWrapper() { } Collection<string> IFileSystemWatcherWrapper.Filters { get => this.Filters; set { if (value is not null) { foreach (var filter in value) { this.Filters.Add(filter); } } } } }