2006年9月15日

摘要: 参数数列 参数数列能够使多个相关的参数被单个数列代表,换就话说,参数数列就是变量的长度。 using System; class Test { static void F(params int[] args) { Console.WriteLine("# 参数: {0}", args.Length); for (int i = 0; i... 阅读全文

posted @ 2006-09-15 23:33 raekwon 阅读(141) 评论(0) 推荐(0)

摘要: 接口using System;using System.Collections;// Declare the collection and implement the IEnumerable interface:public class MyCollection: IEnumerable { int[] items; public MyCollection() { item... 阅读全文

posted @ 2006-09-15 23:31 raekwon 阅读(102) 评论(0) 推荐(0)

摘要: explicit与implicit必须声明为static和public using System;struct RomanNumeral{ public RomanNumeral(int value) { this.value = value; } static public implicit operator RomanNumeral(i... 阅读全文

posted @ 2006-09-15 23:28 raekwon 阅读(142) 评论(0) 推荐(0)

摘要: 属于 默认的成员可访问性 该成员允许的声明的可访问性 ... 阅读全文

posted @ 2006-09-15 23:22 raekwon 阅读(165) 评论(0) 推荐(0)

摘要: using System; abstract class A{ public void F() { Console.WriteLine("A.F"); } public abstract void G(); internal virtual void a() { Console.WriteLine("A.F"); }}... 阅读全文

posted @ 2006-09-15 23:13 raekwon 阅读(113) 评论(0) 推荐(0)

摘要: 自从家里的ADSL猫坏了以后就好久没写过BLOG了,来学校后也一段时间了也没写,真是够懒的我,最近在学PHP,EASY啊,感觉自己现在学什么都很轻松,哈哈 阅读全文

posted @ 2006-09-15 23:04 raekwon 阅读(102) 评论(0) 推荐(0)


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3