|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
namespace CobaltSoftware.Foundation.Web
{
/// <summary>
/// This sub-class of the generic repeater implements it with concrete types, but
/// uses a control builder to cause generic construction.
/// </summary>
[ControlBuilder(typeof(GenericTemplatedControlBuilder))]
[GenericControlType(typeof(GenericRepeater<,>), "CollectionTypeName", "ItemTypeName")]
public class ObjectRepeater : GenericRepeater<IEnumerable<Object>, Object>
{
/// <summary>
/// Collection type name.
/// </summary>
public String CollectionTypeName { get; set; }
/// <summary>
/// Item type name.
/// </summary>
public String ItemTypeName { get; set; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Steve Gray is a Senior Developer at a British insurance company, working on a popular aggregator. When he's not writing ASP .NET, it's because there's SQL or WCF to write instead.