© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
3 replies
geri

I'm writing a code analyzer/fixer

Statements:
- The (most)analyzer/s is/are only working for specific types so it needs to know the typename at least.
- I only see examples on the internet where the typename is given as a string, and so if somebody refactor the library code and rename the type it'll broke the analyzer.
- I wanted to make the analyzer as a standalone assembly, not just creating an analyzer class inside the library code.

Question:
You could make things safer by directly reference the analyzed type inside the analyzer assembly instead of referring to it as a string right?
However I can't refer the library assembly from the analyzer, because it'll lead to circular dependencies
=> A third assembly required that contains the analyzed typed. Isn't this cause "management overhead"?
Any thoughts, and why i don't see examples that are directly referring to the analyzed type instead of referring to it as a string?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Regex Code Analyzer?
C#CC# / help
10mo ago
❔ hello i need help writing a code
C#CC# / help
3y ago
auto code writing
C#CC# / help
2mo ago
Writing SQL code
C#CC# / help
2y ago