小编Sha*_*are的帖子

c#程序中的类结构接口中的无效标记“=”

using System.Text;
using System.Threading.Tasks;

namespace Program
{
    public class Book
    {
        public string title;
        public string author;
        public int pages;
        Book.pages = 10;
    }
}
Run Code Online (Sandbox Code Playgroud)

我不确定为什么会收到无效令牌错误。请帮忙。

c#

2
推荐指数
1
解决办法
87
查看次数

标签 统计

c# ×1