From aa5f57432dbfaa80bdafedce6cfdd377f1babab8 Mon Sep 17 00:00:00 2001 From: PerPloug Date: Wed, 22 Dec 2010 20:25:55 -0100 Subject: [PATCH] Missing children and ChildrenAslist methods on nodefactory wrapper --- .../umbraco/nodeFactory/Page_Legacy.cs | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/umbraco/presentation/umbraco/nodeFactory/Page_Legacy.cs b/umbraco/presentation/umbraco/nodeFactory/Page_Legacy.cs index e713e1d8fd..0ac85ba2c6 100644 --- a/umbraco/presentation/umbraco/nodeFactory/Page_Legacy.cs +++ b/umbraco/presentation/umbraco/nodeFactory/Page_Legacy.cs @@ -41,19 +41,34 @@ namespace umbraco.presentation.nodeFactory } - /* + public new List PropertiesAsList { get { return Properties.Cast().ToList(); } } - */ - + + + + public new Nodes Children + { + get + { + return base.Children as Nodes; + } + } + + public new List ChildrenAsList + { + get { return Children.Cast().ToList(); } + } + + + public Node(XmlNode NodeXmlNode) : base(NodeXmlNode){} public Node(XmlNode NodeXmlNode, bool DisableInitializing) : base(NodeXmlNode, DisableInitializing){} public Node(int NodeId) : base(NodeId){ - var p = NodeId; } public Node(int NodeId, bool forcePublishedXml) : base(NodeId, forcePublishedXml) {}