Monday, January 10, 2011

recursively call a function...

The following code fragment calls recursively a function calculating the sum of the Info integer property of every node in the tree...



If you like your func inside the method then in order to get rid of the definite assignment issue (the use of a local variable which isn't definitely assigned).

1 comments:

  1. http://stackoverflow.com/questions/4627090/recursively-calling-a-func-is-not-always-possible

    ReplyDelete

Post a comment