[API Proposal]: Make RegexRunner.CharInClass public instead of protected #84783
Labels
api-approved
API was approved in API review, it can be implemented
area-System.Text.RegularExpressions
Milestone
Background and motivation
The RegexRunner class is the public extensibility point via which source-generated regexes plug in (and via which the older CompileToAssembly compiled regexes plugged in). RegexRunner has a "CharInClass" method that's used by the customized implementations to check whether a character is in a given character class (stored in a particular string representation of that character class). This method is currently protected. But the source generator emits some helpers that want access to this method, which forces it to create a type derived from RegexRunner just to expose that member:
We can instead just make the member public.
API Proposal
API Usage
n/a
Alternative Designs
No response
Risks
No response
The text was updated successfully, but these errors were encountered: