fork download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. try{
  9. String.Empty.First();
  10. } catch(Exception e) {
  11. Console.WriteLine(e);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.02s 16144KB
stdin
Standard input is empty
stdout
System.InvalidOperationException: Sequence contains no elements
  at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0006c] in <63992662b765477a898ef49cdcc99ee2>:0 
  at Test.Main () [0x00000] in <035b29f0864f4d86a9c520c8c61a2a6d>:0