StreamReader不带字符串?

我正在尝试使用StreamReader读取文件,但是使用path出错

参数1:无法从’string’转换为System.IO.Stream

即使从文档中可以清楚地看到,您应该能够使用字符串。
我在这里想念的是什么?

 public MyClass Load(String path) { try { // exception in this line, `path` is underlined with red using (StreamReader reader = new StreamReader(path)) { String line = reader.ReadLine(); // ... etc 

我不知道你是否得到了答案,但UWP的正确语法如下:

 using (var sr = new StreamReader(new FileStream(filenamestring, FileMode.Open)))