摘要: Utility classes should not have public constructors Utility classes, which are collections of static members, are not meant to be instantiated. C# add 阅读全文
posted @ 2020-06-02 18:50 ChuckLu 阅读(2499) 评论(0) 推荐(0)
摘要: Why are C# 4 optional parameters defined on interface not enforced on implementing class? UPDATE: This question was the subject of my blog on May 12th 阅读全文
posted @ 2020-06-02 16:40 ChuckLu 阅读(133) 评论(0) 推荐(0)
摘要: Method overrides should not change parameter defaults using System; namespace ConsoleApp1 { public class Base { public virtual void Write(int i = 42) 阅读全文
posted @ 2020-06-02 16:10 ChuckLu 阅读(214) 评论(0) 推荐(0)
摘要: Why use a public method in an internal class? UPDATE: This question was the subject of my blog in September 2014. Thanks for the great question! There 阅读全文
posted @ 2020-06-02 15:40 ChuckLu 阅读(222) 评论(0) 推荐(0)
摘要: Git Submodules vs Git Subtrees Subtrees vs Submodules The simplest way to think of subtrees and submodules is that a subtree is a copy of a repository 阅读全文
posted @ 2020-06-02 13:53 ChuckLu 阅读(444) 评论(0) 推荐(0)