Fixing an issue with output parameters that are of type IntPtr
[castle.git] / MonoRail / Castle.MonoRail.Framework / Configuration / DefaultUrlCollection.cs
blob9b6110dd9f3d743edf56a5e326b0f188a5ad9dfc
1 namespace Castle.MonoRail.Framework.Configuration
3 using System.Collections;
4 using System.Xml;
6 /// <summary>
7 /// Represents a set of url mappings
8 /// </summary>
9 public class DefaultUrlCollection : CollectionBase, ISerializedConfig
11 #region ISerializedConfig implementation
13 /// <summary>
14 /// Deserializes the specified section.
15 /// </summary>
16 /// <param name="section">The section.</param>
17 public void Deserialize(XmlNode section)
19 XmlNodeList urls = section.SelectNodes("defaultUrls/add");
21 foreach(XmlNode node in urls)
23 DefaultUrl entry = new DefaultUrl();
25 entry.Deserialize(node);
27 InnerList.Add(entry);
31 #endregion