摘要:
using System;using System.Collections.Generic;using System.Text;using System.IO;namespace ConsoleDelget{class set{private object[] items;public set(int numItems){items = new object[numItems];for (int i = 0; i 声明——>实例化——>作为参数传递给方法——>使用委托。下面就具体看下如何使用委托的:一、定义:delegate void Mydelegate(type1 par 阅读全文
摘要:
// 创建FTP连接 private FtpWebRequest CreateFtpWebRequest(string uri, string requestMethod) { FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(uri); request.Credentials = networkCredential; request.KeepAlive = true; request.UseBinary = true; ... 阅读全文