
c#
「已注销」
这个作者很懒,什么都没留下…
展开
-
C# 屏蔽系统热键
直接上处理类。using System;using System.Collections.Generic;using System.Diagnostics;using System.IO;using System.Reflection;using System.Runtime.InteropServices;using System.Text;using System.Wind...原创 2019-10-15 18:09:20 · 1032 阅读 · 1 评论 -
c#创建不确定类型的泛型集合
描述:假设存在3个类,分别为 Class_01,Class_02,Class_03。这三个类内属性或方法 ,全部或部分通用。需要对这三个类中的某个属性或方法进行操作。现在根据某种判断进行声明三种中的某一种,要求:同一变量名,同样的操作,只是类型不确定。代码:1.首先写一个创建泛型对象的方法 /// <summary> /// 创建泛型对象 /// <...原创 2018-08-10 13:51:52 · 3786 阅读 · 1 评论 -
MVC后台POST方法调用远程API接口
//post方法调用接口 public void PostFunction(string devID) { string url = "";//接口URL string strPostdata = "{\"id\":\"rt02\"}";//注意!双引号 Encoding en...原创 2018-09-17 11:33:10 · 2526 阅读 · 0 评论 -
C#双重锁定单例模式
private static readonly object locker = new object(); private volatile static HomeService instance = null; public static HomeService Instance { get { ...原创 2019-05-15 15:47:53 · 804 阅读 · 0 评论 -
WPF窗体拖动
本文链接:https://blog.youkuaiyun.com/AsynSpace/article/details/97635362为啥要写这篇文章呢。是因为我发现我的窗体在使用DragMove()时,毫无反应.....也可能是我的使用方式不对?这就不清楚了。这里将两种方法写下来,也算是做个记录,也算是给有需要的人一个借鉴的参考。第一种:这种是我在正常窗体情况下使用时完全OK的写法,...原创 2019-07-29 13:12:07 · 4262 阅读 · 0 评论