Forked from ncruces/InvariantUrlParameterFormatter.cs
Last active
August 27, 2016 09:31
-
-
Save jzeferino/06ad8f3c7454b7bfbd123a2cfd9ce209 to your computer and use it in GitHub Desktop.
Culture invariant IUrlParameterFormatter for Refit
This file contains hidden or 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
using System; | |
using System.Globalization; | |
using System.Reflection; | |
namespace Refit | |
{ | |
public sealed class InvariantUrlParameterFormatter : IUrlParameterFormatter | |
{ | |
public string Format(object parameterValue, ParameterInfo parameterInfo) | |
{ | |
return Convert.ToString(parameterValue, CultureInfo.InvariantCulture); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment