diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2010-05-24 16:38:12 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2010-05-24 16:38:12 +0400 |
commit | a1375bd687dc0f49b4090272395402d252cb0580 (patch) | |
tree | da60e61354786920ecd9b835619debdeca5e9069 /mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher | |
parent | 0aab39781633bd989720651d1ae2145a36bd4931 (diff) |
2010-05-24 Atsushi Enomoto <atsushi@ximian.com>
* JsonQueryStringConverter.cs : objects are regarded serializable as
long as they are public here, with some exceptions (not implemented).
* JsonQueryStringConverterTest.cs : add more tests for CanConvert()
and reorganized some classes to make tests rational.
svn path=/trunk/mcs/; revision=157795
Diffstat (limited to 'mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher')
-rw-r--r-- | mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog index e99209a6f13..6fa25ef26a0 100644 --- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog +++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog @@ -1,3 +1,8 @@ +2010-05-24 Atsushi Enomoto <atsushi@ximian.com> + + * JsonQueryStringConverter.cs : objects are regarded serializable as + long as they are public here, with some exceptions (not implemented). + 2010-03-16 Jb Evain <jbevain@novell.com> * WebMessageFormatter.cs: use MOONLIGHT symbol to 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 744069b0731..1820828d0a4 100644 --- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs +++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs @@ -62,7 +62,9 @@ namespace System.ServiceModel.Dispatcher return true; // if (type.GetCustomAttributes (typeof (TypeConverterAttribute), true).Length > 0) // return true; - return false; + + // FIXME: it should return false for things like List<OfPrivateType>. + return type.IsPublic || type.IsNestedPublic; default: return true; } |