From 4caa852db2f8e4e48c4a8185b690bbe8eb714a0b Mon Sep 17 00:00:00 2001 From: Jamie D Date: Thu, 2 Jul 2020 19:30:54 +0100 Subject: [PATCH] be more concise --- Terminal.Gui/Views/ListView.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Terminal.Gui/Views/ListView.cs b/Terminal.Gui/Views/ListView.cs index c36baf729..01c6e6a77 100644 --- a/Terminal.Gui/Views/ListView.cs +++ b/Terminal.Gui/Views/ListView.cs @@ -561,11 +561,7 @@ namespace Terminal.Gui { /// /// Gets the number of items in the . /// - public int Count { - get { - return src?.Count != null ? src.Count : 0; - } - } + public int Count => src != null ? src.Count : 0; void RenderUstr (ConsoleDriver driver, ustring ustr, int col, int line, int width) {