fork download
  1. using System;
  2. using System.IO;
  3. using System.Collections.Generic;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. // your code goes here
  10. }
  11.  
  12. IEnumerable<Stream> GetStreams()
  13. {
  14. return GetStreamsHelper();
  15. }
  16.  
  17. IEnumerable<Stream> GetStreamsHelper()
  18. {
  19. using (var stream = OpenStream())
  20. {
  21. yield return stream;
  22. }
  23. }
  24.  
  25. Stream OpenStream()
  26. {
  27. return new MemoryStream();
  28. }
  29.  
  30. }
Success #stdin #stdout 0.01s 23192KB
stdin
Standard input is empty
stdout
Standard output is empty