解决vs2022 工具箱中不显示 Devexpress控件的问题
手动引用DevExpress.Win.Design包后工具箱就可以正常显示了项目中 右键选择管理NuGet程序包NuGet包管理器搜索 DevExpress.Win.Design,此处必须在右上角 程序包源中 选择 Devexpress Local,d...
C# 生成不重复的短字符串
/// <summary> /// 可用字符 /// </summary> static char[] sc; /// <summary> /// 起始时间 /// </summary> static DateTime startTime; /// <summary> /// ...
C#调用Bartender SDK二次开发
引用COM库Seagull\BarTender 2022\SDK\Assemblies\Seagull.BarTender.Print.dll启动引擎// 启动引擎(第一次运行耗时较多) Engine btEngine = new Engine(true)打开BTW文档并指定打印机// 打开...
接口调用方法(cmd、PowerShell)
测试接口:using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using Spring.Objects.Factory.Attributes; using Newtonsoft.Json; using ChenShiBao.AspNetCore7._0.Model....
基础:C#中的位运算
位运算是程序员掌握底层开发和优化性能的利器。对于那些需要处理二进制数据、优化算法或进行底层操作的开发者来说,理解并熟练使用位运算符是必不可少的技能!1.按位与( & )描述...
WebAPI学习(十一):自定义全局消息返回格式和配置跨域
新建数据返回模型基类:/// <summary> /// 数据返回模型基类 /// </summary> public class ApiResult { /// <summary> /// 返回状态码 /// </summary> public virtual ...