Reputation: 42390
C# allows the Observer Pattern to be implemented via:
Are there any other examples of design patterns that C# implements at the language level?
Upvotes: 0
Views: 154
Reputation: 849
foreach
loop and IEnumerable
- is Iterator Pattern from GoFNullable<T>
types like int?
- are an example of Decorator pattern.Not exactly a language level but still:
StringBuilder
class is an example of GoF Builder pattern.ICommand
- Command pattern from GoFUpvotes: 2