JasonBock / SpackleNet

Spackle is a project that contains a number of helper methods I've used to supplement the core classes in .NET.
MIT License
14 stars 1 forks source link

Add FormattableStringExtensions #7

Closed JasonBock closed 8 years ago

JasonBock commented 9 years ago

C#6 allows you to create a string like this: $"{firstName} {lastName}". However, you can't specify a culture this way.

Consider adding a FormattableStringExtensions class that has a .Using(this FormattableString @this, CultureInfo culture) method, which would call ToString() on the formattable string, passing in the culture.

JasonBock commented 8 years ago

I've tried this....and it's not going to work. So, close the issue :)