日期:2014-05-17 浏览次数:20795 次
public class A
{
private B _b = new B(this); //问题出在了 this 这里。
public B B
{
get
{
return _b;
}
}
}
public class B
{
private A _a;
public B(A a)
{
_a = a;
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
public class A
{
private B _b;
public A()
{ _b = new B(this); }
public B B
{
get
{