2016年8月3日
摘要: public static class StringExt { public static bool IsEmail(this string obj) { return Regex.IsMatch(obj,@"^\w+@\w+\.\w+$"); } } 阅读全文
posted @ 2016-08-03 14:10 路上有你F 阅读(228) 评论(0) 推荐(0)
摘要: private void button2_Click(object sender, EventArgs e) { List<int> list = new List<int>() { 1,4,2,3,6,9}; foreach (var item in list.Where(x => x > 5)) 阅读全文
posted @ 2016-08-03 13:51 路上有你F 阅读(126) 评论(0) 推荐(0)
摘要: public partial class Form2 : Form { public Form2() { InitializeComponent(); } public Form2(string str,Delegate de) : this()//调用当前空构造函数 { label1.Text = 阅读全文
posted @ 2016-08-03 11:40 路上有你F 阅读(468) 评论(0) 推荐(0)