
C#
lyshensir
沈老师的技术博客
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c# 解析返回的json数据
接口返回的内容格式,类似以下json字符串,用C#如何解析,并取到其中的值呢? { "message": "ok", "nu": "367847964498", "ischeck": "1", "condition": "F00", "com": "shunfeng", "status": "200", "state": "3", "data": [{ "time": "...原创 2020-05-07 17:46:34 · 1353 阅读 · 0 评论 -
c# 多线程学习之调用带有参数的方法
线程调用带参数的方法:有两种方式: 1、使用委托: static void Main(string[] args) { /*线程学习*/ Thread thread1 = new Thread(new ThreadStart(delegate{ Program.method1("haha"); }))...原创 2019-11-11 15:20:38 · 1088 阅读 · 0 评论 -
c# 委托学习,父子之间传值
今天再次看了委托的教程,有了更深刻的认识。委托就好像js或者php里的闭包一样,把函数当作变量,然后可以调用一样。 写了个代码如下: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System...原创 2019-07-29 18:19:49 · 220 阅读 · 0 评论