编程

C# 获取程序编译时间

C# 获取程序编译时间 var compileTime = System.IO.File.GetLastWriteTime(System.Reflection.Assembly.GetEntryAssembly().Location);

C#检查系统是否支持HttpListener

C#检查系统是否支持HttpListener // 检查系统是否支持 if (!HttpListener.IsSupported) { throw new System.InvalidOperationException("必须为 Windows XP SP2 或 Server 2003 以上系统!"); }

C# 操作INI文件的类

C# 操作INI文件的类 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; namespa...

C# 格式化时间

C# 格式化时间的格式,如下: yyyy-MM-dd HH:mm:ss 记忆方法:只有MH(马航)是大写,其它小写。

Qt  quick Image从文件中加载图片

Qt  quick Image 从文件中加载图片: Image{ width: parent.width height: parent.height source: "file:./images/home.png" } 注意,当前目录是批Qt Creater中设置的工作目录