随笔分类 -  C#

摘要:12306 登录 环境 .NetFramework4.5 Selenium.WebDriver 3.141.0 chromedriver.exe 97.0.4692.X (从 http://chromedriver.storage.googleapis.com/index.html 下载) Craw 阅读全文
posted @ 2022-01-17 14:33 划破黑夜 阅读(194) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Security.Cryptography; usin 阅读全文
posted @ 2021-09-27 11:26 划破黑夜 阅读(735) 评论(0) 推荐(0)
摘要:DependencyPropertyDescriptor descriptor = DependencyPropertyDescriptor.FromProperty(Canvas.LeftProperty, typeof(Image)); descriptor.AddValueChanged(im 阅读全文
posted @ 2020-12-16 09:34 划破黑夜 阅读(538) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Serialization; using System.IO; using System.Xm 阅读全文
posted @ 2013-05-07 09:22 划破黑夜 阅读(315) 评论(0) 推荐(0)
摘要:public MainWindow() { InitializeComponent(); GetData(); _mydele = new MyDelegate(SetValue); } delegate void MyDelegate(string msg); MyDelegate _mydele 阅读全文
posted @ 2013-03-21 14:13 划破黑夜 阅读(574) 评论(0) 推荐(0)
摘要:#region 获取标准北京时间 ///<summary> /// 获取标准北京时间 ///</summary> ///<returns></returns> public static DateTime GetStandardTime() { //<?xml version="1.0" encoding="GB2312" ?> //- <ntsc> //- <time> // <year>2011</year> ... 阅读全文
posted @ 2013-03-20 13:00 划破黑夜 阅读(2794) 评论(0) 推荐(0)
摘要:#region 获取网页源码 (返回String) /// <summary> /// 获取网页源码 (返回String) /// </summary> /// <param name="url"></param> /// <returns></returns> public static stri 阅读全文
posted @ 2013-03-06 16:12 划破黑夜 阅读(2657) 评论(0) 推荐(0)
摘要:简单的多线程: protected void Page_Load(object sender, EventArgs e) { ParameterizedThreadStart _ParameterizedThreadStart = new ParameterizedThreadStart(MyMet 阅读全文
posted @ 2013-02-27 10:00 划破黑夜 阅读(6938) 评论(0) 推荐(0)
摘要:// // C# 实现端口扫描 // using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Threadi 阅读全文
posted @ 2012-10-26 11:49 划破黑夜 阅读(4430) 评论(1) 推荐(0)
摘要:方法: public void doSomethings(object sender, EventArgs e) {} 如下声明 委托, 就是上面这个方法类型 public delegate void 委托_上面的方法的类型(object sender, EventArgs e); 委托_上面的方法 阅读全文
posted @ 2012-06-05 11:17 划破黑夜 阅读(262) 评论(0) 推荐(0)