【发布时间】:2013-06-16 05:01:29
【问题描述】:
如果我输入以下内容:
class Klass {
public int X;
}
我得到错误:
{interactive}(1,1): error CS1525: Unexpected symbol 'class', expecting 'using'
有没有办法将类和方法输入到 Mono 的 CSharpRepl 中?
【问题讨论】:
标签: c# mono read-eval-print-loop
如果我输入以下内容:
class Klass {
public int X;
}
我得到错误:
{interactive}(1,1): error CS1525: Unexpected symbol 'class', expecting 'using'
有没有办法将类和方法输入到 Mono 的 CSharpRepl 中?
【问题讨论】:
标签: c# mono read-eval-print-loop
与 mono 2.10.x 一起打包的 csharp 命令不支持类声明。为此,您必须升级到 mono 3.0.x。
【讨论】: