摘要:using Microsoft.AspNetCore.Http; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; namespace MEAS.
阅读全文
随笔分类 - 003 C# / 003 C#杂记
用于记录平时工作杂记总结
摘要:--DictParam,表名称 declare @TableName sysname = 'DictParam' declare @Result varchar(max) = ' /// <summary> /// ' + @TableName + ' /// </summary> public c
阅读全文
摘要:基于VS2019,使用步骤: 方式一: 第一步:appsettings.json 定义配置项,可理解为定义对象属性,eg: { "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsof
阅读全文
摘要:public string GetMacAdd(string str = "") { string mac = null; string strMac = string.Empty; try { ManagementObjectSearcher query = new ManagementObjec
阅读全文
摘要:数据脱敏,此处以姓名、身份证为例 /// <summary> /// 姓名敏感处理 /// </summary> /// <param name="fullName">姓名</param> /// <returns>脱敏后的姓名</returns> public string SetSensitiv
阅读全文
摘要:第一步,创建Winfrom窗体界面 第二步,Nuget安装CefSharp--67版本为例 第三步,实现,如下所示: <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version
阅读全文
摘要:using System; using System.Configuration; namespace ConfigurationTool { /// <summary> /// 用于XML操作 /// </summary> public class ConfigurationHelper { //
阅读全文
摘要:字符串加密、解密算法包括: MD5、Des、Base64三种方式,详情如下所示: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cry
阅读全文
摘要:using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Windows
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace ZB.QueueSys.Comm
阅读全文
摘要:第一步:创建用于排序帮助类 using System; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; namespace ZB.QueueSys.Common { pub
阅读全文
摘要:1.网站--新增网站/FTP站点——略 注意:更改合适的端口号,IP地址可设置为 全部未分配 2.新增完网站后进行修改 第一步:选择对应网站 第二步:点击——绑定 3.设置Framework版本 第一步:选择——应用程序池 第二步:选择对应的网站,设置对应的Framework版本 4.浏览——查看A
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace ZB.Que
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; namespace ZB.QueueSys.Common.Enum {
阅读全文
摘要:using System; using System.IO; using System.Diagnostics; using Microsoft.Win32; using ICSharpCode.SharpZipLib.Checksums; using ICSharpCode.SharpZipLib
阅读全文
摘要:using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace AutoUpdate.Helper { public c
阅读全文
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; namespace ZB.QueueSys.Common
阅读全文
摘要:代码如下: using System; using System.Drawing; using System.Windows.Forms; namespace KK.ButtonLable { public partial class Form1 : Form { public Form1() {
阅读全文
摘要:Winform中 使用Cursor 1.放弃进度条、动态进度图片等方式实现用户体验优化方式(主要是优化用户等待体验),建议使用方式? 答:对于From或者Control而言,其提供了Cursor属性设置即可. 例如: this.Cursor = Cursors.WaitCursor; Display
阅读全文
摘要:private void button5_Click(object sender, EventArgs e) { string str = "8.00~12.30"; int index = str.IndexOf('~'); int length = str.Length - index - 1;
阅读全文