diff options
author | Sebastien Pouliot <sebastien@xamarin.com> | 2014-03-18 05:46:33 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@xamarin.com> | 2014-03-18 05:46:33 +0400 |
commit | 13b942c073b44d57883fb97f56119f513e0bef75 (patch) | |
tree | 2e660617af44a0515f9493b2888eeb96b57c6d6d /mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher | |
parent | 95f9ffacad211aebbad6a15889edd12ed946ca47 (diff) |
[System.ServiceModel.Web] Fix JsonQueryStringConverter.ConvertValueToString to work when running on any culture [#18437]
Diffstat (limited to 'mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher')
-rw-r--r-- | mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs index 87bd458413b..41d0e757281 100644 --- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs +++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs @@ -5,6 +5,7 @@ // Atsushi Enomoto <atsushi@ximian.com> // // Copyright (C) 2008 Novell, Inc (http://www.novell.com) +// Copyright 2014 Xamarin Inc. (http://www.xamarin.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -182,7 +183,8 @@ namespace System.ServiceModel.Dispatcher var qname = (XmlQualifiedName) parameter; return String.Concat ("\"", qname.Name, ":", qname.Namespace, "\""); } - return parameter.ToString (); + var f = (parameter as IFormattable); + return (f == null) ? parameter.ToString () : f.ToString (null, CultureInfo.InvariantCulture); } } |