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.
- C#
- VB.NET
public class ListBindingConverter : TypeConverter
Public Class ListBindingConverter
Inherits 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 |
|---|---|---|
| context | ITypeDescriptorContext | An ITypeDescriptorContext that provides a format context. |
| destinationType | Type | A Type that represents the type you want to convert to. |
Returns: Boolean. 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 |
|---|---|---|
| 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.
CreateInstance(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.
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext | An ITypeDescriptorContext that provides a format context. |
| propertyValues | IDictionary | An 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.
GetCreateInstanceSupported(context)
Returns whether changing a value on this object requires a call to the CreateInstance method to create a new value.
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext | An 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.