2006-05-04 Lluis Sanchez <lluis@novell.com>
authorLluis Sanchez <lluis@novell.com>
Thu, 4 May 2006 10:16:49 +0000 (10:16 -0000)
committerLluis Sanchez <lluis@novell.com>
Thu, 4 May 2006 10:16:49 +0000 (10:16 -0000)
* BoundField.cs: Added missing throw kyword. Patch by Marek Habersack.

svn path=/trunk/mcs/; revision=60252

mcs/class/System.Web/System.Web.UI.WebControls/BoundField.cs
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

index 65dac68329318002b7660bfcfac9936aefa56064..7afb1d419d57bffb38eacd5bf4064e321f43767c 100644 (file)
@@ -218,7 +218,7 @@ namespace System.Web.UI.WebControls {
                                if (boundProperty == null) {
                                        boundProperty = TypeDescriptor.GetProperties (dic.DataItem) [DataField];
                                        if (boundProperty == null)
-                                               new InvalidOperationException ("Property '" + DataField + "' not found in object of type " + dic.DataItem.GetType());
+                                               throw new InvalidOperationException ("Property '" + DataField + "' not found in object of type " + dic.DataItem.GetType());
                                }
                                return boundProperty.GetValue (dic.DataItem);
                        }
index 0cdd8b1156f96276eb04522275bad197b421f522..78b4a74604fc353cec718fe8a905e1fb2bc1d549 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-04  Lluis Sanchez  <lluis@novell.com>
+
+       * BoundField.cs: Added missing throw kyword. Patch by Marek Habersack.
+
 2006-04-25  Konstantin Triger  <kostat@mainsoft.com>
 
        * BaseDataBoundControl.cs: ensure the control is bound if ViewState is disabled.