Tag: csc

是否有可能不使用Visual Studio安装C#编译器?

我想从命令行构build项目。 是不是可以在不安装Visual Studio的情况下部署C#编译器?

C#中的幂等修饰符

我注意到,如果我写这样的东西: static void Main(string[] args) { const const const bool flag = true; } 编译器不会警告我多个const 。 所以这似乎模仿C修饰符,因为它们是幂等的。 但是,如果我写: private readonly readonly int a; 编译器警告我重复readonly 。 那么这里发生了什么? 修饰符是幂等的还是不? csc版本1.0.0.50618