using System;
namespace test
{
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
test hhh = new test();
hhh.abc="hahaha";
Console.Write(hhh.abc);
Console.ReadKey();
}
}
public class test
{
public string abc
{
get
{return abc;}
set
{abc=value ;}
}
}
}
运行提示停止运行,是我写错了吗?
你没发现属性abc在循环调用自己吗?