Created
April 1, 2020 12:08
-
-
Save korchoon/6a349b01202e1f0e4e4cb7f862633fa5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class OpCodeCounter | |
| { | |
| short _cur; | |
| public OpCodeCounter(short seed) | |
| { | |
| _cur = seed; | |
| } | |
| public short Next() | |
| { | |
| var id = _cur; | |
| _cur += 1; | |
| return id; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment