[System.Data.Common] Add IDbColumnSchemaGenerator
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.Xml / EncryptedData.cs
index 8fef5987cc4b08800ffb4b53556aad9748b50533..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 ()
                {
                }
 
@@ -92,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;
@@ -140,4 +138,3 @@ namespace System.Security.Cryptography.Xml {
        }
 }
 
-#endif