Browse Source

2004-01-21 Martin Baulig <[email protected]>

	* XmlHierarchyData.cs: Make this compile with csc.

	* BulletedList.cs (BulletedList.SelectedItem): Removed the `set'
	accessor since the base class doesn't have one.

svn path=/trunk/mcs/; revision=22360
Martin Baulig 22 years ago
parent
commit
264b93aef1

+ 1 - 2
mcs/class/System.Web/System.Web.UI.WebControls/BulletedList.cs

@@ -152,7 +152,6 @@ namespace System.Web.UI.WebControls {
 		
 		public override ListItem SelectedItem {
 			get { return base.SelectedItem; }
-			set { throw new NotSupportedException (String.Format ("This property is not supported in {0}", GetType ())); }
 		}
 		
 		public virtual string BulletImageUrl {
@@ -271,4 +270,4 @@ namespace System.Web.UI.WebControls {
 		}
 	}
 }
-#endif
+#endif

+ 7 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,10 @@
+2004-01-21  Martin Baulig  <[email protected]>
+
+	* XmlHierarchyData.cs: Make this compile with csc.
+
+	* BulletedList.cs (BulletedList.SelectedItem): Removed the `set'
+	accessor since the base class doesn't have one.
+
 2004-01-18 Alon Gazit <[email protected]>
 	* CheckBoxList.cs: fix problem with negative TabIndex (wasn't rendered).
 	

+ 3 - 3
mcs/class/System.Web/System.Web.UI.WebControls/XmlHierarchyData.cs

@@ -13,7 +13,7 @@ using System.Collections.Specialized;
 using System.Text;
 using System.Xml;
 using System.ComponentModel;
-using AttributeCollection = System.ComponentModel.AttributeCollection;
+using AC = System.ComponentModel.AttributeCollection;
 
 namespace System.Web.UI.WebControls {
 	public class XmlHierarchyData : IHierarchyData, ICustomTypeDescriptor {
@@ -28,9 +28,9 @@ namespace System.Web.UI.WebControls {
 		}
 		
 		#region ICustomTypeDescriptor
-		AttributeCollection ICustomTypeDescriptor.GetAttributes ()
+		AC ICustomTypeDescriptor.GetAttributes ()
 		{
-			return AttributeCollection.Empty;
+			return AC.Empty;
 		}
 		
 		string ICustomTypeDescriptor.GetClassName ()