所谓的潇洒

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  工具类

各种Helper.cs
Http Post Json参数及Json接收
摘要:private string HttpRequest(Dictionary<string, object> dic, string url) { string json = JSONhelper.ObjToJson(dic); WebRequest request = WebRequest.Crea 阅读全文

posted @ 2021-07-07 15:05 所谓的潇洒 阅读(658) 评论(0) 推荐(0) 编辑

OracleDBHeper
摘要:1.管理NuGet安装Oracle.ManagedDataAccess 2.下载Omu.ValueInjecter.dll using System; using Oracle.ManagedDataAccess; using Oracle.ManagedDataAccess.Types; usin 阅读全文

posted @ 2021-03-03 17:07 所谓的潇洒 阅读(118) 评论(0) 推荐(0) 编辑

USB设备读写
摘要:从C盘搜索kernel32.dll、setupapi.dll、hid.dll,并复制到项目debug目录 加入USBHelper.cs,代码如下 public class USBHelper { bool result; string devicePathName; Guid guidHID = G 阅读全文

posted @ 2020-12-29 10:43 所谓的潇洒 阅读(457) 评论(0) 推荐(0) 编辑

HttpListener
摘要:不用部署到IIS上的web服务 程序内嵌Http服务,方便交互 阅读全文

posted @ 2020-12-29 10:27 所谓的潇洒 阅读(503) 评论(0) 推荐(0) 编辑

MQTTNetHelper
摘要:项目.NetFramework版本4.5.2 Nuget安装MQTTnet版本3.0.12 using MQTTnet; using MQTTnet.Client; using MQTTnet.Client.Connecting; using MQTTnet.Client.Disconnecting 阅读全文

posted @ 2020-12-13 15:26 所谓的潇洒 阅读(707) 评论(0) 推荐(0) 编辑

IniHelper
摘要:using System.IO; using System.Runtime.InteropServices; using System.Text; namespace MyProject { public class IniHelper { private string iniPath = stri 阅读全文

posted @ 2020-11-11 16:36 所谓的潇洒 阅读(149) 评论(0) 推荐(0) 编辑

表单提交PostFormHelper
摘要:Web后台或Winform程序与其他系统对接时,经常用到HTTP/HTTPS的接口调用,且多为Post,我从网上搜到了相关代码,并在使用过程中补充了三个参数,PostFormHelper.cs如下 using System; using System.Collections.Generic; usi 阅读全文

posted @ 2020-09-18 09:57 所谓的潇洒 阅读(351) 评论(0) 推荐(0) 编辑

FTP操作
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpr 阅读全文

posted @ 2020-06-02 15:18 所谓的潇洒 阅读(504) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示