| Name | Message | Date |
|---|---|---|
| 📄 IsLeafConverter.cs | 1 month ago | |
| 📄 PsObjectPropertiesConverter.cs | 1 month ago |
📄
OutGridTree.Window/Converters/PsObjectPropertiesConverter.cs
using System; using System.Globalization; using System.Management.Automation; using Avalonia.Data.Converters; namespace OutGridTree.Window.Converters; internal sealed class PsObjectPropertiesConverter : IValueConverter { public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) => value switch { PSObject o => o.Properties, _ => null, }; public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) => throw new NotImplementedException(); }