[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
// attributes
-#if NET_2_0
- [ParseChildren (true, "Cells", ChildControlType = typeof(Control))]
-#else
- [ParseChildren (true, "Cells")]
-#endif
+ [ParseChildren (true, "Cells")]
public class HtmlTableRow : HtmlContainerControl {
- private HtmlTableCellCollection _cells;
+ HtmlTableCellCollection _cells;
public HtmlTableRow ()
[Browsable (false)]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
-#if NET_2_0
- public virtual
-#else
- public
-#endif
- HtmlTableCellCollection Cells {
+ public virtual HtmlTableCellCollection Cells {
get {
if (_cells == null)
_cells = new HtmlTableCellCollection (this);
}
}
- private int Count {
+ int Count {
get { return (_cells == null) ? 0 : _cells.Count; }
}