소스 검색

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)
 		{