Fix operator != handling of LHS null
[mono.git] / mcs / class / System.Runtime.Caching / System.Runtime.Caching.Configuration / MemoryCacheSettingsCollection.cs
index 120c7ed84b5df807ec144fa7e44fd3f159c5054f..5ef8ad1843edfea7f60027f751e57f116f2a6628 100644 (file)
@@ -72,6 +72,16 @@ namespace System.Runtime.Caching.Configuration
                {
                }
 
+               public void Add (MemoryCacheElement cache)
+               {
+                       BaseAdd (cache);
+               }
+
+               public void Clear ()
+               {
+                       BaseClear ();
+               }
+               
                protected override ConfigurationElement CreateNewElement ()
                {
                        return new MemoryCacheElement ();
@@ -89,5 +99,26 @@ namespace System.Runtime.Caching.Configuration
 
                        return ((MemoryCacheElement)element).Name;
                }
+
+               public int IndexOf (MemoryCacheElement cache)
+               {
+                       if (cache == null)
+                               return -1;
+
+                       return BaseIndexOf (cache);
+               }
+
+               public void Remove (MemoryCacheElement cache)
+               {
+                       if (cache == null)
+                               return;
+
+                       BaseRemove (GetElementKey (cache));
+               }
+
+               public void RemoveAt (int index)
+               {
+                       BaseRemoveAt (index);
+               }
        }
 }