2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / System.Web / System.Web.Mail / MailMessage.cs
index 6531a6d61566095eeab0cecb9eda0935e4a34c4f..cd0eb98f335acffd35fc1271e0376bbb180f0328 100644 (file)
@@ -4,6 +4,9 @@
 // Author:\r
 //    Lawrence Pit (loz@cable.a2000.nl)\r
 //    Per Arneng (pt99par@student.bth.se)\r
+//     Sanjay Gupta (gsanjay@novell.com)
+//
+//     (c)2004 Novell, Inc. (http://www.novell.com)
 //\r
 
 //
@@ -51,7 +54,6 @@ namespace System.Web.Mail
                private string to;\r
                private string urlContentBase;\r
                private string urlContentLocation;
-               private Hashtable fields;\r
                \r
                // Constructor          \r
                public MailMessage ()\r
@@ -59,7 +61,12 @@ namespace System.Web.Mail
                        attachments = new ArrayList (8);\r
                        headers = new ListDictionary ();\r
                        bodyEncoding = Encoding.Default;
+#if NET_1_1
                        fields = new Hashtable ();\r
+#endif
+#if NET_2_0
+                       bodyParts = new ArrayList (2);
+#endif
                }               \r
        \r
                // Properties\r
@@ -127,12 +134,23 @@ namespace System.Web.Mail
                }\r
 \r
 #if NET_1_1\r
+               private Hashtable fields;\r
+               
                public IDictionary Fields {\r
                        get {
                                return (IDictionary) fields;
                        }\r
                }\r
 #endif\r
+
+#if NET_2_0
+               private ArrayList bodyParts;
+               
+               public IList RelatedBodyParts {
+                       get { return (IList) bodyParts; }
+               }
+#endif
+
        }\r
        \r
 } //namespace System.Web.Mail\r