Jumbo patch for NET_2_0, mscorlib is now clean
[mono.git] / mcs / class / corlib / System.Security.Cryptography / ToBase64Transform.cs
index 382db461c5550a493348b901112fffb4282568cc..38680a2e367b4b78d73f76097fa86d1d5b578d01 100644 (file)
@@ -32,9 +32,7 @@ using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
-#if NET_2_0
        [ComVisible (true)]
-#endif
        public class ToBase64Transform : ICryptoTransform {
 
                private bool m_disposed;
@@ -107,15 +105,10 @@ namespace System.Security.Cryptography {
                        if (inputOffset > inputBuffer.Length - inputCount)
                                throw new ArgumentException ("inputOffset", Locale.GetText ("Overflow"));
                        // ordered to avoid possible integer overflow
-#if NET_2_0
                        if (outputOffset < 0)
                                throw new ArgumentOutOfRangeException ("outputOffset", "< 0");
                        if (outputOffset > outputBuffer.Length - inputCount)
                                throw new ArgumentException ("outputOffset", Locale.GetText ("Overflow"));
-#else
-                       if ((outputOffset < 0) || (outputOffset > outputBuffer.Length - inputCount))
-                               throw new IndexOutOfRangeException ("outputOffset");
-#endif
 /// To match MS implementation
 //                     if (inputCount != this.InputBlockSize)
 //                             throw new CryptographicException (Locale.GetText ("Invalid input length"));