Design Pattern: Builder

前端 未结 4 2014
粉色の甜心
粉色の甜心 2020-12-14 07:43

I have looked for a good example of a Builder pattern (in C#), but cannot find one either because I don\'t understand the Builder pattern o

4条回答
  •  再見小時候
    2020-12-14 08:13

    I've never thought about it this way, but LINQ (the pattern, not the syntax) is actually a builder, right?

    It's a fluent interface that builds a query and can create queries in different representations (SQL, in-memory object queries, webservice queries, Bart de Smet even wrote an implementation of Linq-to-Excel).

提交回复
热议问题