C#
aidnexl
这个作者很懒,什么都没留下…
展开
-
C# 屏幕工具类
public class ScreenTool { #region Win32 API [DllImport("user32.dll")] static extern IntPtr GetDC(IntPtr ptr); [DllImport("gdi32.dll")] static extern int GetDeviceCaps( IntPtr hdc, // handle to DC .原创 2020-09-15 18:57:34 · 1160 阅读 · 0 评论 -
C# winform获取当前屏幕dpi缩小缩放比例
/// <summary> /// 获取电脑缩放比例 /// </summary> /// <returns></returns> public float GetWinScaling() { int dpiX; Graphics graphics = this.CreateGraphics(); ...原创 2020-09-03 15:02:52 · 4668 阅读 · 0 评论 -
CefSharp动态添加jq库的方法
(function () { function getScript(url, success) { var script = document.createElement('script'); script.src = url; var head = document.getElementsByTagName('head')[0], done = false; script.onload = script.on.原创 2020-09-01 09:43:30 · 784 阅读 · 0 评论 -
jQuery实现获取form表单内容及绑定数据到form表单操作分析
/** * 将form里面的内容序列化成json * 相同的checkbox用分号拼接起来 * @param {dom} 指定的选择器 * @param {obj} 需要拼接在后面的json对象 * @method serializeJson * */$.fn.serializeJson=function(otherString){ var serializeObj={}, ...原创 2019-12-16 16:10:01 · 625 阅读 · 0 评论 -
C# dotnetcore 异常过滤器
/// <summary> /// 异常过滤器 /// </summary> public class ExceptionFilter : Attribute, IExceptionFilter { /// <summary> /// logService /// <...原创 2019-10-16 18:07:11 · 414 阅读 · 0 评论 -
c# dotcore 请求结果,请求结果过滤器,作挡截
/// <summary> /// 请求结果过滤器 /// </summary> public class ApiResultFilter : IResultFilter { /// <summary> /// 结果结束 /// </summary> ...原创 2019-10-16 18:05:41 · 280 阅读 · 0 评论 -
dotnet core 配置端口
public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseUrls("http://*:8080") .UseKestrel()...原创 2019-10-16 18:03:22 · 713 阅读 · 0 评论 -
C# dotnetcore 配置文件帮助类
using Microsoft.Extensions.Configuration;using Microsoft.Extensions.Configuration.json;using System;using System.Collections.Generic;using System.Text;using Microsoft.Extensions.Configuration;...原创 2019-10-16 18:01:33 · 390 阅读 · 0 评论 -
C# 二维码帮助类 QRCoder
/// <summary> /// 二维码帮助类 /// </summary> public class QrCodeHelper { /// <summary> /// 获取二维码 /// </summary> /// <param ...原创 2019-10-16 17:57:41 · 623 阅读 · 0 评论 -
C# mysql连接线程池
using System;using System.Collections.Generic;using System.Text;using MySql.Data.MySqlClient;namespace Common{ /// <summary> /// 连接池对象 /// </summary> public class Co...原创 2019-09-09 17:06:34 · 1993 阅读 · 2 评论