* CheckBoxList.cs: RepeatLayout property update for new values of
the RepeatLayout enum in 4.0
svn path=/trunk/mcs/; revision=160056
2010-07-08 Marek Habersack <mhabersack@novell.com>
+ * CheckBoxList.cs: RepeatLayout property update for new values of
+ the RepeatLayout enum in 4.0
+
* TreeView.cs: in 4.0, checkbox renders the value of the current
node's ToolTip, if anything, and not Text.
public virtual RepeatLayout RepeatLayout {
get { return (RepeatLayout) ViewState.GetInt ("RepeatLayout", (int) RepeatLayout.Table); }
set {
- if (value < RepeatLayout.Table ||
- value > RepeatLayout.Flow)
+ bool outOfRange;
+#if NET_4_0
+ outOfRange = value < RepeatLayout.Table || value > RepeatLayout.OrderedList;
+#else
+ outOfRange = value < RepeatLayout.Table || value > RepeatLayout.Flow;
+#endif
+ if (outOfRange)
throw new ArgumentOutOfRangeException ("value");
ViewState ["RepeatLayout"] = value;
}