Skip to main content
Version: 3.5

ListBindingConverter

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.1.0.0)

Provides a type converter to convert Binding objects to and from various other representations.

public class ListBindingConverter : TypeConverter

Constructors​

Instance memberListBindingConverter()​

Initializes a new instance of the ListBindingConverter class.

Methods​

Instance memberCanConvertTo(context, destinationType)​

Returns whether this converter can convert the object to the specified type using the specified context.

ParameterTypeDescription
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
destinationTypeTypeA Type that represents the type you want to convert to.

Returns: Boolean. true if this converter can perform the conversion; otherwise, false.

Instance memberConvertTo(context, culture, value, destinationType)​

Converts the given value object to the specified type, using the specified context and culture information.

ParameterTypeDescription
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
cultureCultureInfoA CultureInfo. If null is passed, the current culture is assumed.
valueObjectThe Object to convert.
destinationTypeTypeThe Type to convert the value parameter to.

Returns: Object. An Object that represents the converted value.

Instance memberCreateInstance(context, propertyValues)​

Creates an instance of the type that this TypeConverter is associated with, using the specified context, given a set of property values for the object.

ParameterTypeDescription
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
propertyValuesIDictionaryAn IDictionary of new property values.

Returns: Object. An Object representing the given IDictionary, or null if the object cannot be created. This method always returns null.

Instance memberGetCreateInstanceSupported(context)​

Returns whether changing a value on this object requires a call to the CreateInstance method to create a new value.

ParameterTypeDescription
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.

Returns: Boolean. true if changing a property on this object requires a call to CreateInstance to create a new value; otherwise, false.