* OleDbParameterCollectionTest.cs: Fix compile error in 1.1 profile.
[mono.git] / mcs / class / System.DirectoryServices / System.DirectoryServices / SearchResult.cs
index 803ecc3b3557fc6aaae75b2f67b6f98e88b75762..c9abd5b08ad19e4448c5175dfdd0cb5d10f292a5 100644 (file)
@@ -109,7 +109,7 @@ namespace System.DirectoryServices
                                                                String val = (String)Rproperties[attribute].Value;
                                                                rpVal.Add(val);
                                                        }
-                                                       else
+                                                       else if (Rproperties[attribute].Count > 1)
                                                        {
                                                                Object[] vals=(Object [])Rproperties[attribute].Value;
 //                                                             String[] aStrVals= new String[_Entry.Properties[attribute].Count];