Log4基本配置 作为一个程序员你要学会调试,对于一种调试都无法找到问题所在的情况,你要学会看日志,要学会看日志你的学会怎么样去写入日志,接下来教你装备C#Log4 第一步,你的在装备文件中装备好对应的参数 <c... IT技术# C++ 3年前54
C#简单的枚举及结构 usingSystem;namespaceprogram {enumWeekDays { a,//0b,//1c=11,//11赋值今后就变成11,不赋值便是2d,//12e,//13f,//14g... IT技术# C++ 3年前36
C#中巧用妙法避免嵌套方式使用两个foreach循环 问题: 需要对DataGridViewRow的下拉框列Item2所选内容进行判别,看是否跟数据库里边某个装备表的数据列Item1匹配。 如果用两个foreach循环进行匹配,会导致逻辑杂乱而且简单只b... IT技术# C++ 3年前48
System staticvoidMain(string[]args) { SystemTimersDemo(); Console.ReadLine(); }staticvoidSystemTimersDemo... IT技术# C++ 3年前42
C#使用Mongodb方法 usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Thread... IT技术# C++ 3年前24
c#判断汉字的三种方式 1.用汉字的UNICODE编码规模判别 汉字的UNICODE编码规模是4e00-9fbb,依据此规模也可以判别,详细代码如下: [C#]纯文本检查 /// ///用UNICODE编码规模判别字符是不是... IT技术# C++ 3年前18
winform播映wav文件代码分享 usingSystem.Reflection; usingSystem.IO; usingSystem.Resources; usingSystem.Media; usingSystem.Diagno... IT技术# C++ 3年前60
生成唯一时间戳ID代码分享 /// ///时刻戳ID /// publicclassTimestampID { privatelong_lastTimestamp; privatelong_sequence;//计数从零开始 p... IT技术# C++ 3年前24
FTPHelper,FTp公共帮助类同享 usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Net; u... IT技术# C++ 3年前18
经过抓取页面获取当天天气信息 ///得到天气数据 ///数组(0、天气;1、气温;2、风力;3、紫外线;4、空气) publicstaticstring[]GetWeather() { Regexregex; string[]we... IT技术# C++ 3年前36