之前一直都把实体写入redis都没有问题,今天再次这样干,结果却是怎么写都写不进去,redis里的值老是为空 最后才发现把类当成了实体类,当然写不进去了. 把类: /// <summary> /// Redis实体 /// </summary> public class Redis { public string tdtype;//tdtype public string tdaccount;//tdaccount
有没有觉得命名太难?有没有觉得单元测试的命名更难?没错,你不是一个人!看看这个你就知道了:程序员最头疼的事:命名 或它的英文原文 Don’t go into programming if you don’t have a good thesaurus - ITworld. 立刻前往 nuget.org 下载安装 MSTestEnhancer 即可解决命名的苦恼. 体验 MSTestEnhancer 看看苦恼的单元测试怎么写: [TestClass] public class 被测类名Test
原文:http://www.imsiren.com/archives/572 比如我们要创建一个类..PHP代码如下 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 class Person { public $name; public $age; public function __construct() { echo "construct is running! "; } public
用扩展类写了一个管理类: using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Net; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary