Ver código fonte

be more concise

Jamie D 5 anos atrás
pai
commit
4caa852db2
1 arquivos alterados com 1 adições e 5 exclusões
  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)
 		{