08 2020 档案

摘要:开始之前,先介绍下swagger常用方法。 services.AddSwaggerGen //添加swagger中间件 c.SwaggerDoc //配置swagger文档,也就是右上角的下拉框内容 c.IncludeXmlComments //引用程序集xml,用于加载出 备注信息等如图 c.Ad 阅读全文
posted @ 2020-08-28 11:32 雲瑞 阅读(1500) 评论(0) 推荐(1)
摘要:本文章主要用于做接口形式跨进程的使用。 额外提下: 发普通消息与此类同 1 public const int WM_SETTEXT = 12; 2 public const int CB_SETCURSEL = 0X014D; 3 [DllImport("user32.dll", EntryPoin 阅读全文
posted @ 2020-08-26 15:20 雲瑞 阅读(2269) 评论(0) 推荐(0)
摘要:如程序以普通方式打开,那么DragDrop DragEnter 事件是可以正常使用的。但以管理员身份运行时,这两个方法将失效。 原因是 Windows机制(用户界面特权隔离). UIPI:用户界面特权隔离(User Interface Privilege Isolation),是 Windows 7 阅读全文
posted @ 2020-08-26 14:49 雲瑞 阅读(671) 评论(0) 推荐(0)
摘要:1 public class TimeTool 2 { 3 //根据出生年月计算 整数天 4 private static int GetAgeByBirthdate(DateTime birthdate) 5 { 6 DateTime now = DateTime.Now; 7 int age = 阅读全文
posted @ 2020-08-26 10:38 雲瑞 阅读(606) 评论(0) 推荐(0)