Table of Contents

Class ResourceFileNameConverter

Namespace
Bonsai.Resources
Assembly
Bonsai.System.dll

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 ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

culture CultureInfo

A CultureInfo. If null is passed, the current culture is assumed.

value object

The object to convert.

destinationType Type

The Type to convert the value parameter to.

Returns

object

An object that represents the converted value.

Exceptions

ArgumentNullException

The destinationType parameter is null.

NotSupportedException

The conversion cannot be performed.