-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
String.Format
to handle formatting of multiple types correctly,…
… not only DateTime (#31) * Fix some unit tests not passing due to the ambient culture * Fix "String.Format" helper to handle generic formatting "String.Format" used to only support "DateTime" for formatting. As for now, as soon as the value implements "IFormattable" that interface is used to perform the formatting. Also, if the format provider exposes a "ICustomFormatter" service, that formatter is used first for formatting the value. The formatting falls back to "ToString()" or to an empty string if the value to format is null. * Replaced "" by string.Empty to adhere to coding standards Co-authored-by: Damien Braillard <damien.braillard@otis.com>
- Loading branch information
1 parent
d649edc
commit eda63bf
Showing
3 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters