Merge pull request #505 from roji/shutdown_flow
[mono.git] / mcs / class / corlib / System.Security.Cryptography / CryptoAPITransform.cs
index 716ced9728c16f48a959ff6e535c3a155688e8a5..777017de58972acdf5f7817c0120e3dae9148793 100644 (file)
@@ -35,9 +35,7 @@ namespace System.Security.Cryptography {
        // Note: This class isn't used by Mono as all algorithms are provided with
        // 100% managed implementations.
 
-#if NET_2_0
        [ComVisible (true)]
-#endif
        public sealed class CryptoAPITransform : ICryptoTransform {
 
                private bool m_disposed;
@@ -47,12 +45,6 @@ namespace System.Security.Cryptography {
                        m_disposed = false;
                }
 
-#if ! NET_2_0
-               ~CryptoAPITransform () 
-               {
-                       Dispose (false);
-               }
-#endif
 
                public bool CanReuseTransform {
                        get { return true; }
@@ -75,7 +67,11 @@ namespace System.Security.Cryptography {
                        get { return 0; }
                }
 
+#if NET_4_0
+               public void Dispose ()
+#else
                void IDisposable.Dispose () 
+#endif
                {
                        Dispose (true);
                        GC.SuppressFinalize (this);  // Finalization is now unnecessary
@@ -108,11 +104,9 @@ namespace System.Security.Cryptography {
                        return null;
                }
 
-#if NET_2_0
                [ComVisible (false)]
                public void Reset ()
                {
                }
-#endif
        }
 }