出现异常,点击“调试”,提示如下:“未处理的“System.StackOverflowException”类型的异常出现在 Model.DLL 中。”

错误代码如下:

public class WindMachine

    {

        // Internal member variables

        private string name;

        private float ispeed;//顺时风速

        private float tI902;//10分钟有功功率

public float TI902

        {

            get { return TI902; }

            set { TI902 = value; }

        }

应该为 

         get { return tI902; }

            set { tI902 = value; }
问题解决。

相关文章:

  • 2021-11-30
  • 2021-11-27
  • 2021-12-01
  • 2021-07-31
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-10
  • 2021-06-06
  • 2021-09-20
  • 2021-06-04
  • 2021-04-14
  • 2021-08-16
相关资源
相似解决方案