随笔分类 - C#
摘要:12306 登录 环境 .NetFramework4.5 Selenium.WebDriver 3.141.0 chromedriver.exe 97.0.4692.X (从 http://chromedriver.storage.googleapis.com/index.html 下载) Craw
阅读全文
摘要:using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Security.Cryptography; usin
阅读全文
摘要:DependencyPropertyDescriptor descriptor = DependencyPropertyDescriptor.FromProperty(Canvas.LeftProperty, typeof(Image)); descriptor.AddValueChanged(im
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Serialization; using System.IO; using System.Xm
阅读全文
摘要:public MainWindow() { InitializeComponent(); GetData(); _mydele = new MyDelegate(SetValue); } delegate void MyDelegate(string msg); MyDelegate _mydele
阅读全文
摘要:#region 获取标准北京时间 ///<summary> /// 获取标准北京时间 ///</summary> ///<returns></returns> public static DateTime GetStandardTime() { //<?xml version="1.0" encoding="GB2312" ?> //- <ntsc> //- <time> // <year>2011</year> ...
阅读全文
摘要:#region 获取网页源码 (返回String) /// <summary> /// 获取网页源码 (返回String) /// </summary> /// <param name="url"></param> /// <returns></returns> public static stri
阅读全文
摘要:简单的多线程: protected void Page_Load(object sender, EventArgs e) { ParameterizedThreadStart _ParameterizedThreadStart = new ParameterizedThreadStart(MyMet
阅读全文
摘要:// // C# 实现端口扫描 // using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Threadi
阅读全文
摘要:方法: public void doSomethings(object sender, EventArgs e) {} 如下声明 委托, 就是上面这个方法类型 public delegate void 委托_上面的方法的类型(object sender, EventArgs e); 委托_上面的方法
阅读全文

浙公网安备 33010602011771号