2017年10月18日

== equals object.ReferenceEquals

摘要: using System; using System.Collections.Generic; using System.Xml.Serialization; class Person { public int Age { get; set; } public string Name { get; set; } public static bool operator ... 阅读全文

posted @ 2017-10-18 15:16 靖康耻 阅读(105) 评论(0) 推荐(0) 编辑

异常处理

摘要: 2. 阅读全文

posted @ 2017-10-18 13:16 靖康耻 阅读(125) 评论(0) 推荐(0) 编辑

2017年10月17日

剪刀 石头 布

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WindowsFormsApp4; namespace ConsoleApp1 { abstract class Base { ... 阅读全文

posted @ 2017-10-17 16:03 靖康耻 阅读(207) 评论(0) 推荐(0) 编辑

2017年10月14日

ArrayList 注意点

摘要: 1. 阅读全文

posted @ 2017-10-14 10:03 靖康耻 阅读(417) 评论(2) 推荐(0) 编辑

2017年10月3日

泛型委托

摘要: using System; using System.Collections.Generic; namespace ConsoleApplication2 { public delegate int DelegateOne(T a, T b); internal class Program { public static void Main(strin... 阅读全文

posted @ 2017-10-03 20:17 靖康耻 阅读(100) 评论(0) 推荐(0) 编辑

C# 单例模式

摘要: using System.Windows.Forms; namespace jjjjjj { public partial class Form2 : Form { private static Form2 _ins; private Form2() { InitializeComponent(); ... 阅读全文

posted @ 2017-10-03 13:23 靖康耻 阅读(122) 评论(0) 推荐(0) 编辑

c#验证码

摘要: using System; using System.Drawing; using System.Windows.Forms; namespace aaaa { public partial class Form1 : Form { public Form1() { InitializeComponent(); ... 阅读全文

posted @ 2017-10-03 12:45 靖康耻 阅读(118) 评论(0) 推荐(0) 编辑

2017年10月2日

c#选择日期

摘要: using System; using System.Windows.Forms; namespace DateDemo { public partial class Form1 : Form { private int _currentYearIndex; private int _currentMonthIndex; priv... 阅读全文

posted @ 2017-10-02 12:39 靖康耻 阅读(1110) 评论(0) 推荐(0) 编辑

2017年10月1日

c# 显式实现接口的方法

摘要: using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; namespace Cons... 阅读全文

posted @ 2017-10-01 09:11 靖康耻 阅读(166) 评论(0) 推荐(0) 编辑

2017年9月30日

C# StreamReader

摘要: using (StreamReader sr = new StreamReader("test.txt")){ string line = null; while (((line = sr.ReadLine())) != null) { Console.WriteLine(line); }}或者 u 阅读全文

posted @ 2017-09-30 17:19 靖康耻 阅读(1113) 评论(0) 推荐(0) 编辑

导航