Match IDisposable with 4.0 changes in System.Security.Cryptography
[mono.git] / mcs / class / corlib / System.Security.Cryptography / AsymmetricAlgorithm.cs
index b8e848a0a6a1432bd383fe80cecde05ff00e559e..5109910cb1e13e469e0ffaa45577f18965d0e105 100644 (file)
@@ -65,7 +65,11 @@ namespace System.Security.Cryptography {
                        get;
                }
 
+#if NET_4_0
+               public void Dispose ()
+#else
                void IDisposable.Dispose () 
+#endif
                {
                        Dispose (true);
                        GC.SuppressFinalize (this);  // Finalization is now unnecessary
@@ -76,8 +80,13 @@ namespace System.Security.Cryptography {
                        Dispose (false);
                }
 
+#if NET_4_0
+               protected virtual void Dispose (bool disposing)
+               {
+               }
+#else
                protected abstract void Dispose (bool disposing);
-
+#endif
                public abstract void FromXmlString (string xmlString);
                
                public abstract string ToXmlString (bool includePrivateParameters);