Match IDisposable with 4.0 changes in System.Security.Cryptography
[mono.git] / mcs / class / corlib / System.Security.Cryptography / SymmetricAlgorithm.cs
index 2ee27a7fabcbdea3b57f808622b05abb2c89b935..f915376048f1f79d35fc9c53bb8ed365580c26e1 100644 (file)
@@ -70,7 +70,12 @@ namespace System.Security.Cryptography {
                        Dispose (false);
                }
 #endif
+
+#if NET_4_0
+               public void Dispose ()
+#else
                void IDisposable.Dispose () 
+#endif
                {
                        Dispose (true);
                        GC.SuppressFinalize (this);  // Finalization is now unnecessary