whoops
authorGeoff Norton <grompf@sublimeintervention.com>
Fri, 13 Mar 2009 01:09:50 +0000 (01:09 -0000)
committerGeoff Norton <grompf@sublimeintervention.com>
Fri, 13 Mar 2009 01:09:50 +0000 (01:09 -0000)
svn path=/trunk/mcs/; revision=129238

mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/TypeMap.cs

index 9bf3583ebcdd3dbc658f9b934cd3478025b9d8c4..a2474c6e3d4835a71e5909750c705a019a44154f 100644 (file)
@@ -121,11 +121,11 @@ namespace System.Runtime.Serialization.Json
 
                        if (dca != null) {
                                foreach (PropertyInfo pi in type.GetProperties (BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)) {
-                                               continue;
                                        object [] atts = pi.GetCustomAttributes (typeof (DataMemberAttribute), true);
                                        if (atts.Length == 0)
                                                continue;
                                        if (pi.GetIndexParameters ().Length > 0)
+                                               continue;
                                        if (IsCollection (pi.PropertyType)) {
                                                if (!pi.CanRead)
                                                        throw new InvalidDataContractException (String.Format ("Property {0} must have a getter", pi));