Skip to content

Handle provider names that start with a numeric digit.#2369

Merged
brianrob merged 1 commit intomicrosoft:mainfrom
brianrob:brianrob/perfview-1804
Feb 27, 2026
Merged

Handle provider names that start with a numeric digit.#2369
brianrob merged 1 commit intomicrosoft:mainfrom
brianrob:brianrob/perfview-1804

Conversation

@brianrob
Copy link
Copy Markdown
Member

C# names can't start with numeric digits, so if a provider name starts with a numeric digit, prepend a '_' character onto the class name. This is an indication that the user should adjust the name appropriately, while at the same time, allowing the code to compile and run.

Fixes #1804

C# names can't start with numeric digits, so if a provider name starts
with a numeric digit, prepend a '_' character onto the class name.  This
is an indication that the user should adjust the name appropriately,
while at the same time, allowing the code to compile and run.
@brianrob brianrob merged commit d133824 into microsoft:main Feb 27, 2026
5 checks passed
@brianrob brianrob deleted the brianrob/perfview-1804 branch February 27, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TraceParserGen generates non-compilable code for illegal identifiers

2 participants