Index: src/DeltaShell/DeltaShell.Gui/Forms/PropertyGrid/PropertyGrid.cs =================================================================== diff -u -r61b1261865cc635e69783ed210f1b22d08da0a25 -r98a7464aa2f9a8163979b8a9d5ac617e412ba3a0 --- src/DeltaShell/DeltaShell.Gui/Forms/PropertyGrid/PropertyGrid.cs (.../PropertyGrid.cs) (revision 61b1261865cc635e69783ed210f1b22d08da0a25) +++ src/DeltaShell/DeltaShell.Gui/Forms/PropertyGrid/PropertyGrid.cs (.../PropertyGrid.cs) (revision 98a7464aa2f9a8163979b8a9d5ac617e412ba3a0) @@ -193,15 +193,7 @@ { objects.Add(obj.Current); } - if (objects.Count > 0) - { - SelectedObjects = objects.ToArray(); - } - else - { - // If this was an empty list, set the property grid to null - SelectedObjects = null; - } + SelectedObjects = objects.Count > 0 ? objects.ToArray() : null; // If this was an empty list, set the property grid to null } else {