以前就学过C#,但是不是很深入,现成从零开始学。
第一个C#程序:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Chapter02 { class Program { static void Main(string[] args) { Console.WriteLine("The first app in Beginning C# Programming!"); Console.ReadKey(); } } }
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("The first Windows app in the book!"); } } }
呵呵,第二章就结束了。。。