变量的作用域
摘要:
namespace ConsoleApplication3{ class Program { static void write() { string mystring = "string defined in wrtie()"; Console.WriteLine("now in write()"); Console.WriteLine("mystring={0}", mystring); } static void Main(string[] args) { string mystring = "string defined in Main()"; write(); Console.Wri 阅读全文
posted @ 2011-01-23 21:11 i617 阅读(140) 评论(0) 推荐(0) 编辑