VB.net中的Static變量和Shared變量的區別

沒有,   in   C#,   it   is   static,   C#中的static變量相當於VB.net中的Shared變量  
   
  In   VB,   you   can   declare   a   local   variable   (in   a   method)   as     Static,  

 but   for   class   level   constructs,   member   variable/methods/properties/...,   you   have   to   use   Shared  
   
  see   some   discussions   here:   
   http://www.mail-archive.com/[email protected]/msg01355.html  
   

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章