
代码
jjyjjyjjy
这个作者很懒,什么都没留下…
展开
-
C#子类与父类的初始化
using System;class Field{ public Field(string str) { System.Console.WriteLine(str); }}class Super{ private Field f = new Field("Super Field"); public Super() { System.C原创 2007-03-23 11:11:00 · 2868 阅读 · 0 评论 -
一份有趣的代码
using System;class A{ public A() { PrintFields(); } public virtual void PrintFields() { }}class B : A{ int x = 1; int y; public B() { y = -1; } public overr转载 2007-03-23 11:18:00 · 529 阅读 · 0 评论 -
实现一个简单C#DES加密类
using System;using System.Collections.Generic;using System.Text;using System.Security.Cryptography;using System.IO;namespace MyWinFormApp{ public class DEScrypt { #region "Private Field原创 2007-03-28 15:21:00 · 1738 阅读 · 1 评论 -
C#事件标准步骤
using System;//第一步 定义事件参数类型internal class NewMailEventArgs:EventArgs{ private readonly string m_from,m_to,m_subject; public NewMailEventArgs(string from,string to,string subject) { this.m_from =转载 2007-04-02 21:56:00 · 695 阅读 · 0 评论 -
C#委托方法匿名的4种写法
using System;using System.Threading;//不需要构造函数的委托对象internal sealed class NoConstructorDelegateClass{ public static void CallbackWithoutNewingADelegateObject() { ThreadPool.QueueUserWorkI原创 2007-04-17 01:23:00 · 1669 阅读 · 0 评论