// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
-#if NET_2_0
-
+using System.Collections.Specialized;
using System.ComponentModel;
using System.Globalization;
foreach (string datum in datums)
col.Add (datum.Trim());
+ col.UpdateStringHash ();
return col;
}
{
if (value == null) return null;
- if (value.GetType() != typeof (CommaDelimitedStringCollection))
+ if (!typeof (StringCollection).IsAssignableFrom (value.GetType()))
throw new ArgumentException ();
return value.ToString ();
}
}
}
-#endif
+