这是我的代码
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
public partial class Class1
{
public void method2()
{
}
}
我看到了括号问题的解决方案,但如您所见,它的方式正确。这个错误的原因是什么有人可以帮助我吗?我正在使用 asp.net 1.1。
最佳答案
partial
C# 1.x 不支持关键字。您至少需要将您的框架更新到 v2.0。
关于c# - c# 中的预期类、委托(delegate)、枚举、接口(interface)或结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5993077/