C# is stringVariable = $"{integerVariableThatNeedsToBeAString}" better/faster than stringVariable = integerVariableThatNeedsToBeAString.ToString()

Viewed 27

The question is in the title, but is it the same/better/faster/worse to do:

var stringValue = intValue.ToString();

or

var stringValue = $"{intValue}";

Or should I not be thinking about such petty/unimportant things?

0 Answers
Related