string first = $"It's the {DateTime.Now.Day} of the {DateTime.Now.Month} month";
FormattableString second = $It's the {DateTime.Now.Day} of the {DateTime.Now.Month} month";
The compiler generates different code depending on the compile-time type of the output being requested. The code that generates a string will format that string based on the current culture of the machine.
Related: https://github.com/BillWagner/EffectiveCSharpAnalyzers/issues/5, #28
The compiler generates different code depending on the compile-time type of the output being requested. The code that generates a string will format that string based on the current culture of the machine.