Skip to main content

UserListConverter

A class in Root.Township, the global namespace.

Type converter that turns a comma-separated console argument into a UserList of UserInfoAccess entries (ids or lowercased names).

Constructors​

MemberWhat it is
UserListConverter()Creates an UserListConverter with default values.

Methods​

MemberWhat it is
override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)True for strings.
override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)Splits the lowercased string on commas and makes a UserInfoAccess from each trimmed part, by id if numeric.