下面是我在 VS 调试器崩溃前不久得到的。当我没有调试器查看它时,它会在 set 函数中抛出一个段错误。调试器一整天都在处理同样的事情。有什么想法吗?
我正在查看的对象:
[DataContract]
public class SvnUrl
{
public string _type;
public string _acronym;
public string _location;
public string _url;
public int _foundstatus;
[DataMember]
public string type
{
get { return _type; }
set { _type = value; }
}
[DataMember]
public string acronym
{
get { return _acronym; }
set { _acronym = value; }
}
[DataMember]
public string location
{
get { return _location; }
set { _location = value; }
}
[DataMember]
public string url
{
get { return _url; }
set { _url = value; }
}
[DataMember]
public int foundstatus
{
get { return _foundstatus; }
set { _foundstatus = value; }
}
}
最佳答案
您确定您键入的示例与您的代码相同并且您实际上没有 get { return location;
在该位置属性中(注意缺少的 _
从而无限递归)?
关于c# - 查看变量时 Visual Studio 调试器崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8073793/