C# Builder
摘要:
如下:class Program{ static void Main(string[] args) { var a = new Class1.Builder().BuildA(1).BuildB(2.1).BuildUp(); Console.Read(); }}public class Class1{ private Class1(Builder builder) { A = builder.A; B = builder.B; } internal int A { get; set; } ... 阅读全文
posted @ 2013-08-04 21:18 yao2yao4 阅读(202) 评论(0) 推荐(0)
浙公网安备 33010602011771号