ListBindingConverter

Wisej.Web.ListBindingConverter

Namespace: Wisej.Web

Assembly: Wisej.Framework (2.5.0.0)

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

public class ListBindingConverter : TypeConverter

Constructors

ListBindingConverter()

Initializes a new instance of the ListBindingConverter class.

Methods

CanConvertTo(context, destinationType)

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

Parameter
Type
Description

destinationType

A Typearrow-up-right that represents the type you want to convert to.

Returns: Booleanarrow-up-right. true if this converter can perform the conversion; otherwise, false.

ConvertTo(context, culture, value, destinationType)

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

Parameter
Type
Description

culture

A CultureInfoarrow-up-right. If null is passed, the current culture is assumed.

destinationType

The Typearrow-up-right to convert the value parameter to.

Returns: Objectarrow-up-right. An Objectarrow-up-right that represents the converted value.

CreateInstance(context, propertyValues)

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

Parameter
Type
Description

propertyValues

An IDictionaryarrow-up-right of new property values.

Returns: Objectarrow-up-right. An Objectarrow-up-right representing the given IDictionaryarrow-up-right, or null if the object cannot be created. This method always returns null.

GetCreateInstanceSupported(context)

Returns whether changing a value on this object requires a call to the CreateInstancearrow-up-right method to create a new value.

Parameter
Type
Description

Returns: Booleanarrow-up-right. true if changing a property on this object requires a call to CreateInstancearrow-up-right to create a new value; otherwise, false.

Last updated

Was this helpful?