摘要: IsSnapToTickEnabled="True" 阅读全文
posted @ 2016-11-07 13:58 FredGrit 阅读(2504) 评论(0) 推荐(0) 编辑
摘要: 抄自:http://blog.csdn.net/leo063/article/details/52994786 thread stack size not set; configure via D:\Program Files\elasticsearch-5.0.0\config\jvm.optio 阅读全文
posted @ 2016-11-01 19:37 FredGrit 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 1.下载curlzip,https://curl.haxx.se/download.html; 2.解压,在bin文件夹中找到curl.exe,右键“以管理员身份运行”,cmd e: 换盘符;出现E:\Work\curl-7.46.0-win64\curl-7.46.0-win64\bin; 3.c 阅读全文
posted @ 2016-11-01 17:11 FredGrit 阅读(1938) 评论(2) 推荐(0) 编辑
摘要: 所谓浅拷贝就是将对象中的所有字段复制到新的副本对象中;浅拷贝对于值类型与引用类型的方式有区别,值类型字段的值被复制到副本中后,在副本中的修改不会影响源对象对应的值;然而对于引用类型的字段被复制到副本中的却是引用类型的引用,而不是引用的对象,在副本中对引用类型的字段值被修改后,源对象的值也将被修改。 阅读全文
posted @ 2016-10-27 10:09 FredGrit 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 通俗的讲,就是高层模块定义接口,低层模块负责实现。 Bob Martins对DIP的定义: 高层模块不应依赖于低层模块,两者应该依赖于抽象。 抽象不不应该依赖于实现,实现应该依赖于抽象。 总结出使用DIP的优点: 系统更柔韧:可以修改一部分代码而不影响其他模块。 系统更健壮:可以修改一部分代码而不会 阅读全文
posted @ 2016-10-26 10:30 FredGrit 阅读(447) 评论(0) 推荐(0) 编辑
摘要: // // Summary: // Register a type mapping with the container. // // Parameters: // container: // Container to configure. // // injectionMembers: // In 阅读全文
posted @ 2016-10-26 09:43 FredGrit 阅读(225) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8" ?><PersonList> <Person Id="1"> <Name>Fred</Name> </Person> <Person Id="2"> <Name>Sophie</Name> </Person> <Person 阅读全文
posted @ 2016-10-22 14:46 FredGrit 阅读(238) 评论(0) 推荐(0) 编辑
摘要: public class StudentList:ObservableCollection<Student> { public List<Student> studentList = new List<Student>(); public StudentList() { using (mydbEnt 阅读全文
posted @ 2016-10-20 16:06 FredGrit 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 重载overload 派生类和基类的方法同名,其中访问修饰符(public,private,protected,internal,protected internal),返回类型,参数类型,个数,顺序中的一个或若干可以不同,实现可以不同; 重写override 必须对抽象类中声明的abstract方 阅读全文
posted @ 2016-10-20 15:00 FredGrit 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 接口实现: interface IMath { void Add(int x, int y); } public class MathClass : IMath { public void Add(int x, int y) { Console.WriteLine("This is the inte 阅读全文
posted @ 2016-10-20 14:17 FredGrit 阅读(294) 评论(0) 推荐(0) 编辑