UserInfoAccessConverter
A class in Root.Township, the global namespace.
Type converter that turns a console argument string into a UserInfoAccess: a number becomes a user id, anything else a lowercased username.
- Listed in Global namespace: T to X
- Inherits or implements
TypeConverter
Constructors
| Member | What it is |
|---|---|
UserInfoAccessConverter() | Creates an UserInfoAccessConverter with default values. |
Methods
| Member | What it is |
|---|---|
override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) | True for strings. |
override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) | Lowercases the string and makes a UserInfoAccess from it as an id if it parses as an int, otherwise as a name. |