降序:
lstroot.Sort((x,y)=>y.static_count.CompareTo(x.static_count));
升序:
lstroot.Sort((x,y)=>x.static_count.CompareTo(y.static_count));
降序:
lstroot.Sort((x,y)=>y.static_count.CompareTo(x.static_count));
升序:
lstroot.Sort((x,y)=>x.static_count.CompareTo(y.static_count));
可直接拋出 帶HTTP狀態碼的異常 throw new HttpException(401,“很抱歉!您沒有執行此操作的權限!”); net也可以使用 回覆可進行下載