VB.net中的Static变量和Shared变量的区别

来源:互联网 发布:ubuntu可以运行exe吗 编辑:程序博客网 时间:2024/06/05 00:49

没有,   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/bdotnet@groups.msn.com/msg01355.html