Kaynağa Gözat

2004-08-30 Atsushi Enomoto <[email protected]>

	* XsltCompileException.cs : added NET_2_0 constructors.
	  Hide property Message under NET_2_0.

svn path=/trunk/mcs/; revision=33035
Atsushi Eno 21 yıl önce
ebeveyn
işleme
84f8dee162

+ 5 - 0
mcs/class/System.XML/System.Xml.Xsl/ChangeLog

@@ -1,3 +1,8 @@
+2004-08-30  Atsushi Enomoto  <[email protected]>
+
+	* XsltCompileException.cs : added NET_2_0 constructors.
+	  Hide property Message under NET_2_0.
+
 2004-05-06  Atsushi Enomoto  <[email protected]>
 
 	* ManagedXslTransform.cs : For Stream input, use StreamWriter for 

+ 20 - 0
mcs/class/System.XML/System.Xml.Xsl/XsltCompileException.cs

@@ -41,6 +41,23 @@ namespace System.Xml.Xsl
 	{
 		#region Constructors
 
+#if NET_2_0
+		public XsltCompileException ()
+			: base (String.Empty, null)
+		{
+		}
+
+		public XsltCompileException (string message)
+			: base (message, null)
+		{
+		}
+
+		public XsltCompileException (string message, Exception innerException)
+			: base (message, innerException)
+		{
+		}
+#endif
+
 		protected XsltCompileException (SerializationInfo info, StreamingContext context )
 			: base (info, context)
 		{
@@ -59,9 +76,12 @@ namespace System.Xml.Xsl
 
 		#region Properties
 
+#if NET_2_0
+#else
 		public override string Message {
 			get { return base.Message; }
 		}
+#endif
 
 		#endregion