摘要: using System; //无参数的委托 namespace ConsoleApp1{ class Program { delegate void MyDel(); public void Print1() { Console.WriteLine("I am print 1"); } publi 阅读全文
posted @ 2020-06-01 21:53 小白沙 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Txthandler 使用属性,将TXT文件放在 解决方案\bin\ 文件夹下, 由程序自动搜索路径;避免了硬编码 using System;using System.Collections.Generic;using System.Linq;using System.Text;using Syst 阅读全文
posted @ 2020-06-01 21:16 小白沙 阅读(107) 评论(0) 推荐(0) 编辑