C#类、结构或接口成员声明中的标记无效

2025-01-03 00:58:36
推荐回答(4个)
回答1:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void main()
{
te.hehe t = new text.hehe();
te.intro();
Console.WriteLine("lang");
}
}
}
namespace te
{
public class hehe
{
public void intro()
{
Console.WriteLine("lang");
}

}
}

回答2:

无语。这都不会调试啊。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
public static void main()
{
te.hehe t = new text.hehe();
te.intro();
Console.WriteLine("lang");
}
}
}
namespace te
{
public class hehe
{
public void intro()
{
Console.WriteLine("lang");
}

}
}

回答3:

class class Program
{
protected static void Main(object sender, EventArgs e)
{
te.hehe h t=new te.hehe();
h.intro();

}
}

回答4:

装备