随笔分类 - C# / C#基础
摘要:本来想自己整理一份,但找到了一份挺全的,就直接用到直接找吧 A0 ………… 通用A1 ………… Form 类A2 ………… Control 类A3 ………… MessageBox 类A4 ………… Button 类A5 ………… Label 类 LinkLabel 类A6 ………… TextBox
阅读全文
摘要:刚学习设计模式,还不是太了解,感觉只有多数据库的情况下才用的到,待学习 首先创建空白解决方案,依次创建类库Model,IDAL,SqlServerDAL,DALFactory,BLL,DBUtility,并创建一个窗体程序 首先在窗体程序的App.Config中添加以下设置 <appSettings
阅读全文
摘要:创建类库,并添加新窗体,加入以下方法 public static string setText(string str) { return str; } 编译后把生成的DLL文件放入新项目的bin目录,新项目需要using System.Reflection窗口放入2个button,并添加实现 //通
阅读全文
摘要:Clear() 从 List<T> 中移除所有元素。 List<Employees> employees = new List<Employees>(); employees.Add(new Employees { Id = 1, Name = "Nancy.Davolio", City = "Se
阅读全文
摘要:List集合查询数据 List<Employees> employees = new List<Employees>(); employees.Add(new Employees { Id = 1, Name = "Nancy.Davolio", City = "Seattle", BirthDat
阅读全文
摘要:所有操作基于以下类 class Employees { public int Id { get; set; } public string Name { get; set; } public string City { get; set; } public DateTime BirthDate {
阅读全文
摘要:所有操作基于以下类 class Employees { public int Id { get; set; } public string Name { get; set; } public string City { get; set; } public DateTime BirthDate {
阅读全文

浙公网安备 33010602011771号