Visitor Revisitted: LINQ, Function Composablity and Chain of Responsib (blogs.msdn.com)
submitted by
CharlieCalvert(7835) 2 years, 9 months ago
Jomo Fisher—Last time, I wrote about constructing an inline visitor using new C# language features. It worked fine for what it did, but it completely falls down when you want to extend existing visitors that you’ve created. What if I wanted to modify the PrintTree delegate to print negative numbers inside parentheses? There’s not a way to do it. This is a serious limitation, especially when you have hundreds of node types in your tree structure.
|
category: C#
|
Views: 0
tags:
LINQ C# another
Everyones tags:
Your Tags: