![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
懒虫_
此人很懒,但确实什么都没写
展开
-
C# httpclient 调用接口
public string SubmitInvoicePost(string obj, string url, UserAuthorization tempUser) { WriteLog.DoWriteLog("调用接口提交数据" + url + "JSON(传入的参数)", obj, tempUser); var order = obj; using (var client = new HttpClien...原创 2021-06-17 11:17:57 · 1124 阅读 · 0 评论 -
C# DES加密 DES/CSC/PKCS7 秘钥+偏移量+hex输出
/// <summary> /// des加密 /// </summary> /// <returns></returns> public static string DESEncrypt(string original, string key, string iv) { byte[] rgbKey = Encoding.UTF8.Get...原创 2021-06-17 11:12:37 · 939 阅读 · 0 评论 -
记录一次asp.net 中 后台GridView 取值,绑定,转换,展示问题
在aspx 页面内,GridView的RowDataBound绑定问题:在aspx页面中,利用GridView控件实行数据绑定后台代码示例: protected void Page_Load(object sender, EventArgs e) { connString = ConnectionString.ReturnConnString(); BindGridView(); } // 绑定GridView private原创 2021-05-21 14:22:11 · 495 阅读 · 0 评论 -
C# 多线程同步运行代码,并监听花费的时间
//config中配置的线程数 <appSettings><add key="TaskNum" value="5"/></appSettings>int TaskNum = int.Parse(ConfigurationManager.AppSettings["TaskNum"].ToString());System.Diagnostics.Stopwatch stopwatch = new System.Diagnostics.Stopwatch(); .原创 2021-04-06 14:29:10 · 577 阅读 · 0 评论 -
C#下调用ORACLE包体,并获取返回值
//包体名称string comText = ""; //参数OracleParameter[] paras = new OracleParameter[]{ new OracleParameter("result",OracleType.VarChar,256), new OracleParameter("param1",P_DSDWB.原创 2021-03-17 10:48:14 · 514 阅读 · 0 评论 -
C# 线程监听
线程循环监听方法记录一下 private readonly List<Thread> threads = new List<Thread>(); /// <summary> /// 线程循环监听 /// </summary> private void ClearPutLogMes() { //if (times <= 0)原创 2020-07-01 19:07:23 · 2218 阅读 · 0 评论