fork download
  1. public class SomeClass
  2. {
  3. private readonly IClient _client;
  4.  
  5. public SomeClass(IClient client)
  6. {
  7. _client = client;
  8. }
  9.  
  10. public async Task DoStuff()
  11. {
  12. await _client.ConnectAsync();
  13. var result = await _client.ReceiveAsync();
  14. }
  15. }
  16.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(3,22): error CS0246: The type or namespace name `IClient' could not be found. Are you missing an assembly reference?
prog.cs(5,22): error CS0246: The type or namespace name `IClient' could not be found. Are you missing an assembly reference?
prog.cs(10,18): error CS0246: The type or namespace name `Task' could not be found. Are you missing `System.Threading.Tasks' using directive?
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty