using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Linq; namespace Umbraco.Web.Models { [TypeConverter(typeof(RelatedLinksTypeConverter))] public class RelatedLinks : IEnumerable { private readonly string _propertyData; private readonly IEnumerable _relatedLinks; public RelatedLinks(IEnumerable relatedLinks, string propertyData) { _relatedLinks = relatedLinks; _propertyData = propertyData; } /// /// Gets the property data. /// internal string PropertyData { get { return this._propertyData; } } public IEnumerator GetEnumerator() { return _relatedLinks.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return this.GetEnumerator(); } } }