* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.Xml / EncryptedData.cs
index 8fef5987cc4b08800ffb4b53556aad9748b50533..425e42fb5d01552b54b467c28c15dfb832c6aef5 100644 (file)
 
 #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 ()
                {
                }
 
@@ -92,10 +93,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;