Unexpected symbol CS1525

When using the code example from here:

[StreamReader.ReadAsync Method (System.IO) | Microsoft Learn][1]

I’ve written it as this:
!

[2]

But I'm getting this error from Unity (at the point with the red arrow) that I can't seem to resolve:
![12041-error.png|436x27](upload://nf3kReXdrdqdPwl7UoS1lqCBgeW.png)

When I comment out the line it removes the error.  I also tried to remove the cast but it did not resolve it.


  [1]: http://msdn.microsoft.com/en-us/library/system.io.streamreader.readasync.aspx
  
  

I’m not very skilled myself, but looking at the error message, the parenthesis is not your problem. The error says that the compiler is expecting the symbol `.’ or , (most likely a comma). The compiler is probably expecting (int) to be a separate part of the phrase.

Unity doesn’t support await (as of the time of the question) as answered by this question:

http://answers.unity3d.com/questions/493147/await-creates-error-with-streamreader.html