共 5 篇文章 |
|
Windos 性能监视器中的计数器不全的解决方法。性能监视器提示:不能添加这些计数器.选择计数器时显示不全,缺少计数器.以管理员的方式打开控制台,然后执行 lodctr /R.等执行完成后,就好了,如果不行,在找其他方式。 阅224 转0 评0 公众公开 20-09-16 17:46 |
Json 类解析json字符串时,注意中括号[]Json.JsonSerializationException:“Cannot deserialize the current JSON array (e.g. [1,2,3]) into type ''ConsoleApp_quhao.result'' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.JsonArrayAttribute can also b... 阅1912 转2 评0 公众公开 20-09-08 16:54 |
C# task 传多个参数。已public Task StartNew(Action<object> action, object state);重载为例。StartNew(new Action<object>(UppercaseString), new a { inputString = name, i = i });WriteLine("task外:"+i);private static void UppercaseString(object inputString)WriteLine("task内:"+b.i+b.inputStr... 阅2506 转2 评0 公众公开 20-09-02 17:34 |
C# 把字符串根据标题数据动态赋值到实体类中。Msg msg = new Msg();/// 把字符串根据标题数据动态赋值到实体类中。/// <param name="t">实体类</param>/// <param name="title">标题数组,大小写必须和实体类的字段值一样</param>/// <param name="Valus">对应的值</param>... 阅301 转1 评0 公众公开 20-08-19 17:06 |