各位大神,请教程序Exception_WasThrown的问题
程序提出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));
}
}
}
}