// Author:
// Sebastien Pouliot <sebastien@ximian.com>
//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
using System.ComponentModel;
using System.Security.Permissions;
-namespace System.Web.UI.HtmlControls {
-
+namespace System.Web.UI.HtmlControls
+{
// CAS
[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
- public class HtmlTableRow : HtmlContainerControl {
-
- private HtmlTableCellCollection _cells;
-
+ [ParseChildren (true, "Cells")]
+ public class HtmlTableRow : HtmlContainerControl
+ {
+ HtmlTableCellCollection _cells;
public HtmlTableRow ()
: base ("tr")
{
}
-
[DefaultValue ("")]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[WebSysDescription("")]
}
}
- private int Count {
+ int Count {
get { return (_cells == null) ? 0 : _cells.Count; }
}
return new HtmlTableCellControlCollection (this);
}
-#if NET_2_0
- protected internal
-#else
- protected
-#endif
- override void RenderChildren (HtmlTextWriter writer)
+ protected internal override void RenderChildren (HtmlTextWriter writer)
{
if (HasControls ()) {
writer.Indent++;