
@if (Model.Projects != null && Model.Projects.Count > 0){<fIEldset> <table summary="@T("This is a table of the delivery Runs in your application")"> <colgroup>}else{//no data available} Model.Projects.Count> 0说:
解决方法 怎么样operator > cant be applIEd to operands of type ‘method group’ and
‘int’
Model.Projects.Count()> 0
要么
Model.Projects.Any()
如果你使用resharper,它会推荐你使用Model.Projects.Any()
总结以上是内存溢出为你收集整理的c# – 如果列表返回空显示消息全部内容,希望文章能够帮你解决c# – 如果列表返回空显示消息所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)