Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Suggest ".ToString" inside string formatting routines #23

Open
ljw1004 opened this issue May 31, 2016 · 0 comments
Open

Suggest ".ToString" inside string formatting routines #23

ljw1004 opened this issue May 31, 2016 · 0 comments

Comments

@ljw1004
Copy link
Contributor

ljw1004 commented May 31, 2016

int i = 15;
Console.WriteLine("Hello {0}", i);

This code warns about the implicit boxing of int i. I've heard the recommended answer here is Console.WriteLine("Hello {0}", i.ToString()) but most people probably don't know this. Maybe suggest it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant