浏览代码

be more concise

Jamie D 5 年之前
父节点
当前提交
4caa852db2
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      Terminal.Gui/Views/ListView.cs

+ 1 - 5
Terminal.Gui/Views/ListView.cs

@@ -561,11 +561,7 @@ namespace Terminal.Gui {
 		/// <summary>
 		/// Gets the number of items in the <see cref="IList"/>.
 		/// </summary>
-		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)
 		{