An unhandled exception of type 'System.StackOverflowException' occurred

前端 未结 3 582
广开言路
广开言路 2020-12-18 00:54

Why this? This is my code :

public class KPage
{
    public KPage()
    {
       this.Titolo = \"example\";
    }

    public string Titolo
    {
        get         


        
3条回答
  •  旧巷少年郎
    2020-12-18 01:13

    Change to

    public class KPage
    {
        public KPage()
        {
           this.Titolo = "example";
        }
    
        public string Titolo
        {
            get;
            set;
        }
    }
    

提交回复
热议问题