Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Consider banning string function #3567

Closed
pbiggar opened this issue Mar 12, 2022 · 2 comments
Closed

Consider banning string function #3567

pbiggar opened this issue Mar 12, 2022 · 2 comments

Comments

@pbiggar
Copy link
Member

pbiggar commented Mar 12, 2022

It's impossible to tell statically if the ToString function we are calling is one that we intend to call or merely the built-in Object.ToString(). This particularly came up for FQFnName.toString.

@pbiggar
Copy link
Member Author

pbiggar commented Mar 12, 2022

That wouldn't prevent string interpolation.

Look at https://www.nuget.org/packages/ToStringWithoutOverrideAnalyzer/

@StachuDotNet
Copy link
Member

Folded into #5246

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants