Merge pull request #364 from directhex/master
[mono.git] / mcs / class / System.Configuration / System.Configuration / ConfigurationPropertyCollection.cs
index dfca501b34987d2da64198abf9cbd9a24f1efa90..33dba87688bba8ab8648c12eeda9646a78b77993 100644 (file)
@@ -42,7 +42,7 @@ namespace System.Configuration
                        collection = new List <ConfigurationProperty> ();
                }
 
-               public virtual int Count {
+               public int Count {
                        get { return collection.Count; }
                }
 
@@ -66,6 +66,8 @@ namespace System.Configuration
 
                public void Add (ConfigurationProperty property)
                {
+                       if (property == null)
+                               throw new ArgumentNullException ("property");
                        collection.Add (property);
                }