各位大神,请教程序Exception_WasThrown的问题

wangwei26144 wangwei26144 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
程序提出System.StackOverflowException:“Exception_WasThrown”我应该怎么改?初学C#请求帮助





using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace DrawC
{
internal class JsonClass : INotifyPropertyChanged
{
public string RunNum
{
get
{
return this.RunNum;
}
set
{
this.RunNum = value;
this.NotifyPropertyChange("RunNum");
}
}
public bool UseNorepeat
{
get
{
return this.UseNorepeat;
}
set
{
this.UseNorepeat = value;
}
}
public string LuckMan
{
get
{
return this.LuckMan;
}
set
{
this.LuckMan = value;
this.NotifyPropertyChange("LuckMan");
}
}
public string SaveText
{
get
{
return this.SaveText;
}
set
{
this.SaveText = value;
this.NotifyPropertyChange("SaveText");
}
}
public List<JsonrootItem> Jsonroot
{
get
{
return this.Jsonroot;
}
set
{
this.Jsonroot = value;
}
}
public JsonClass()
{
this.Jsonroot = new List<JsonrootItem>();
this.LuckMan = "抽签抽中人员";
this.RunNum = "0个人";
this.UseNorepeat = true;
}
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChange(string propertyName)
{
if (this.PropertyChanged != null)
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}

}
}
...全文
评论 1
收藏 已收藏
分享
返回顶部
wangwei26144
C# 111,128 成员 642,536 内容