[System.Data.Common] Add IDbColumnSchemaGenerator
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.Xml / EncryptedData.cs
index 677fc3dc33b2290185ed95bfd15d6e0958920f3f..ff141f602d5d7a5a3997269bb2fa93d134b89ec4 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 
 using System.Security.Cryptography.X509Certificates; 
 using System.Xml;
 
 namespace System.Security.Cryptography.Xml {
+
        public sealed class EncryptedData : EncryptedType {
 
                #region Constructors
 
                public EncryptedData ()
-                       : base ()
                {
                }
 
@@ -93,10 +92,8 @@ namespace System.Security.Cryptography.Xml {
                                throw new CryptographicException ("Malformed EncryptedData element.");
                        else {
                                EncryptionMethod = null;
-                               KeyInfo keyInfo = null;
-                               CipherData cipherData = null;
                                EncryptionMethod = null;
-                               EncryptionProperties = new EncryptionProperties ();
+                               EncryptionProperties.Clear ();
                                Id = null;
                                Type = null;
                                MimeType = null;
@@ -141,4 +138,3 @@ namespace System.Security.Cryptography.Xml {
        }
 }
 
-#endif