C#兼并两个数组方法 byte[]b1=newbyte[]{1,2,3,4,5}; byte[]b2=newbyte[]{6,7,8,9}; byte[]b3=newbyte[b1.Length+b2.Length]; c... IT技术# C++ 3年前30
winform 开发中经常会用到的一些windows API using System; using System.Collections.Generic; using System.Drawing; using System.Diagnostics; usin... IT技术# C++ 3年前12
winform圆角窗体代码 privatevoidBeautiLoginForm_Paint(objectsender,PaintEventArgse) { Type(this,25,0.1); } privatevoidTyp... IT技术# C++ 3年前12
C#计算代码运行时间 System.Diagnostics.Stopwatchstopwatch=newStopwatch(); stopwatch.Start();//开始监视代码运行时间 //youcode…... IT技术# C++ 3年前54
FTPHelper,FTP公共帮助类共享 usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Net; u... IT技术# C++ 3年前42
C#通过抓取页面获取当天天气信息 ///<summary> ///得到天气数据 ///</summary> ///<returns>数组(0、天气;1、气温;2、风力;3、紫外线;4、空气)<... IT技术# C++ 3年前30
C#高质量无损压缩图片代码同享 ///无损紧缩图片 /// ///原图片地址 ///紧缩后保存图片地址 ///紧缩质量(数字越小紧缩率越高)1-100 ///紧缩后图片的最大巨细 ///是否是第一次调用 /// publicstat... IT技术# C++ 3年前12
XML帮助类 添加/删去/查找节点 //添加xml节点 privatevoidAddXml(stringimage,stringtitle) { XmlDocumentxmlDoc=newXmlDocument(); xmlDoc.Lo... IT技术# C++ 3年前54
HTTP相关工具类/协助类分享 usingSystem; usingSystem.Collections.Generic; usingSystem.IO; usingSystem.Linq; usingSystem.Net; usi... IT技术# C++ 3年前42
.NET Core读取配置文件 publicstaticclassMengTConfig { staticIConfigurationRoot_MT_Configuration{get;} staticIConfigurationS... IT技术# C++ 3年前24