2013年11月10日
    
 
        
        
摘要:        
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MyDelegate{ delegate void Del(string str); class Program { static void Main(string[] args...    
阅读全文
 
        
            posted @ 2013-11-10 12:43
神秘藏宝室
阅读(186)
推荐(0)
        
            
        
        
摘要:        
控制台应用程序代码using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MyDelegate{ delegate void Del(string msg); class Program { static void Main(string[] args) { Del handler = ReturnMsg; string info = "名叫小白,年方二八,除了没钱和长的太帅外基...    
阅读全文
 
        
            posted @ 2013-11-10 12:35
神秘藏宝室
阅读(411)
推荐(0)
        
            
        
        
摘要:        
控制台应用程序效果:代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MyEventTest{ class Program { /// /// 第一步 新建委托需要的带参数的类,属于事件的参数的子类 /// public class MyClassEventArgs : EventArgs { private string name; ...    
阅读全文
 
        
            posted @ 2013-11-10 11:37
神秘藏宝室
阅读(614)
推荐(0)
        
 
		
    
        
            
        
         
        2013年11月9日
    
 
        
        
摘要:        
定义委托语法:访问修饰符delegate 返回值类型 委托名称(参数1,参数2,参数n …)定义事件的语法:public event 委托名 事件名;控制台应用程序实例:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Event{ class Program { static void Main(string[] args) { Employee e1 = new Employee("小白",988...    
阅读全文
 
        
            posted @ 2013-11-09 17:45
神秘藏宝室
阅读(292)
推荐(0)
        
 
		
    
        
            
        
         
        2013年11月8日
    
 
        
        
摘要:        
Packages.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Examination{ public class Packages { public string Name { get; set; } public Dictionary Items { get; set; ...    
阅读全文
 
        
            posted @ 2013-11-08 17:36
神秘藏宝室
阅读(687)
推荐(0)
        
 
		
    
        
            
        
         
        2013年11月7日
    
 
        
        
摘要:        
CourseItem.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace LessonList{ /// /// 课程类 /// public class CourseItem { public CourseItem() { } /// /// 实例化一个课程的对象 /// /// 课程名字 /// 课程数 ...    
阅读全文
 
        
            posted @ 2013-11-07 18:31
神秘藏宝室
阅读(365)
推荐(0)
        
            
        
        
摘要:        
public class List{}public class LinkedList{}public class SortedListT 相当于占座    
阅读全文
 
        
            posted @ 2013-11-07 15:30
神秘藏宝室
阅读(273)
推荐(0)
        
            
        
        
摘要:        
winform应用程序代码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 ArrayDemo{ public partial class Form1 : Form { public Form1() { Initia...    
阅读全文
 
        
            posted @ 2013-11-07 15:19
神秘藏宝室
阅读(425)
推荐(0)
        
 
		
    
        
            
        
         
        2013年11月6日
    
 
        
        
摘要:        
Book.cs文件using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace Booklist{ public class Book { /// /// 作者 /// public string Author { get; set; } /// ///...    
阅读全文
 
        
            posted @ 2013-11-06 18:35
神秘藏宝室
阅读(770)
推荐(0)
        
            
        
        
摘要:        
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ControlProject{ class Program { static void Main(string[] args) { Array myarr; //创建数组 var v = 10; //创建一个匿名类型的变量 myarr = Array.CreateInstance...    
阅读全文
 
        
            posted @ 2013-11-06 16:18
神秘藏宝室
阅读(339)
推荐(0)