fork(2) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9.  
  10. List<ushort> takeMaxmumId = new List<ushort>();
  11. var max = takeMaxmumId.Select(x=>x).DefaultIfEmpty((ushort)1).Max();
  12.  
  13.  
  14. }
  15. }
Success #stdin #stdout 0s 131136KB
stdin
Standard input is empty
stdout
Standard output is empty