随笔分类 - c#
摘要:直接上处理类。 using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.Inter
阅读全文
摘要:本文链接:https://blog.csdn.net/AsynSpace/article/details/97635362 为啥要写这篇文章呢。是因为我发现我的窗体在使用DragMove()时,毫无反应.....也可能是我的使用方式不对?这就不清楚了。 这里将两种方法写下来,也算是做个记录,也算是给
阅读全文
摘要:private static readonly object locker = new object(); private volatile static HomeService instance = null; public static HomeService Instance { get {
阅读全文
摘要://post方法调用接口 public void PostFunction(string devID) { string url = "";//接口URL string strPostdata = "{\"id\":\"rt02\"}";//注意!双引号 Encoding encoding = En
阅读全文
摘要:描述: 假设存在3个类,分别为 Class_01,Class_02,Class_03。 这三个类内属性或方法 ,全部或部分通用。需要对这三个类中的某个属性或方法进行操作。 现在根据某种判断进行声明三种中的某一种,要求:同一变量名,同样的操作,只是类型不确定。 代码: 1.首先写一个创建泛型对象的方法
阅读全文