摘要: StrucrTest.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication11{ struct MyStruct // struct定义结构体的关键字. { private string name; private int age; private bool marriage; public MyStruct(string n,int a , bool ... 阅读全文
posted @ 2012-10-25 23:23 梦断难寻 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 用三个类来展示委托和Lambda表达式的使用.1.using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class LambdaTest { //来定义几个方法.让委托变量绑定 public static void ShowName() { Console.WriteLine("姓名: Tony / 梦断难寻"); } p... 阅读全文
posted @ 2012-10-25 20:16 梦断难寻 阅读(378) 评论(0) 推荐(0) 编辑