变量的作用域(3)
摘要:
namespace ConsoleApplication3{ class Program { static string mystring; static void write() { string mystring = "string defined in wrtie()"; Console.WriteLine("now in write()"); Console.WriteLine("Local mystring={0}", mystring); Console.WriteLine("Global mystring={0}",Program.mystring ); } static voi 阅读全文
posted @ 2011-01-24 19:10 i617 阅读(127) 评论(0) 推荐(0) 编辑