日期:2014-05-20  浏览次数:20450 次

做了一个属性,现对它赋值出问题,大家帮看一下.
rt,代码如下:
Imports   System  
Imports   System.Web  
Imports   System.Web.UI  

Namespace   MySpace

  Public   Class   My
  Inherits   System.Web.UI.Page  

      Protected   Button   As   System.Web.UI.WebControls.Button

      Private   Sub   Page_Load(ByVal   sender   As   Object,   ByVal   e   As   System.EventArgs)  
        Show   =   "ABC "
      End   Sub  

      Public   Sub   Button1_Click(ByVal   sender   As   Object,   ByVal   e   As   System.EventArgs)
                    Response.Write(Show)

      End   Sub

      Public   Property   Show()   As   String
            Get
            Return   "CHINA "
            End   Get
    Set  
            Show   =   value
            End   Set
      End   Property
  End   Class  
End   Namespace


现我对   Show   =   "ABC "进行操作时,就出错:发生类型为   System.StackOverflowException   的异常。  

请问如何解决?请大家指点.

------解决方案--------------------
Set Show = value End Set 这个Show又回到了他本身,死循环