Scripting functoids and their method names

Recently I was working on a mapping for which I needed two scripting functoids.

I used the inline C# and defined a certain method name. I used the same method name for the other scripting functoid because it quite described what was done in the method, but the implementation was slightly different.

When I tested the map it seemed that only one of the functoids was executed. However it looked like it generated output for both functoids. It appeared the implementation of the first functoid was applied to both.

After some debugging I found out the cause of this was multiple functoids having the same method name. After changing that, everything worked as expected again.

I learned my leasson and now I always change the method name to something unique for that mapping. But I was a bit surprised that the compiler didn’t warn about this.

  • Recent Posts
  • Recent Comments
  • Archives
  • Categories
  • Meta