Here's a possible implementation of a recursive function that generates an incremental serial number in C#:
main.cs370 chars11 lines
To use this function, you would pass in the current value of the serial number and the number of increments you want to apply. For example, if you want to generate the 5th serial number starting from 100, you would call:
main.cs54 chars2 lines
The 4
is passed in as the increment because we are generating the next serial number 4
times recursively.
gistlibby LogSnag