// 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
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);
}
}