Skip to main content

PageCollectionConverter

A class in Root.Township, Alta.Pages.

TypeConverter that turns a string into a PageCollection by name. Nothing in this build attaches it to a type.

Constructors​

MemberWhat it is
PageCollectionConverter()Creates a PageCollectionConverter with default values.

Methods​

MemberWhat it is
override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)True for strings, otherwise defers to the base converter.
override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)Finds the PageCollection whose name matches the string, ignoring case. Logs and returns null if there is none.