Should it be? Changing it post construction can change the results of tokenizing. If this is supposed to be something created as a singleton and shared, UnknownToken should likely not be allowed to be changed post construction (either only as a ctor argument or at least making the property's setter instead be init).
Should it be? Changing it post construction can change the results of tokenizing. If this is supposed to be something created as a singleton and shared, UnknownToken should likely not be allowed to be changed post construction (either only as a ctor argument or at least making the property's setter instead be init).