Class ResourceFileNameConverter
Provides a type converter to convert a resource file name to and from other representations.
public class ResourceFileNameConverter : StringConverter
- Inheritance
-
ResourceFileNameConverter
- Inherited Members
Methods
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts the given value
object to a resource file name,
and also sets the Name
property of the object that is connected to this type
converter request, if it exists.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
ITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
culture
CultureInfoA CultureInfo. If null is passed, the current culture is assumed.
value
objectThe object to convert.
destinationType
TypeThe Type to convert the
value
parameter to.
Returns
Exceptions
- ArgumentNullException
The
destinationType
parameter is null.- NotSupportedException
The conversion cannot be performed.