Improve this Doc View Source

Class DelegatingTypeConverter

Use this to delegate to an not yet existing TypeConverter Example: DelegatingStringEncryptionTypeConverter

Inheritance
System.Object
System.ComponentModel.TypeConverter
DelegatingTypeConverter
Namespace:Dapplo.HttpExtensions.Support
Assembly:Dapplo.HttpExtensions.dll
Syntax
public class DelegatingTypeConverter : TypeConverter

Constructors

| Improve this Doc View Source

DelegatingTypeConverter(String, String)

Create the inner type, which we wrap, so we can "delegate" to it.

Declaration
public DelegatingTypeConverter(string assemblyName, string typeName)
Parameters
Type Name Description
System.String assemblyName

string

System.String typeName

string

Methods

| Improve this Doc View Source

CanConvertFrom(ITypeDescriptorContext, Type)

Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Type sourceType
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanConvertTo(ITypeDescriptorContext, Type)

Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Type destinationType
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Globalization.CultureInfo culture
System.Object value
Returns
Type Description
System.Object
| Improve this Doc View Source

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Globalization.CultureInfo culture
System.Object value
System.Type destinationType
Returns
Type Description
System.Object
| Improve this Doc View Source

CreateInstance(ITypeDescriptorContext, IDictionary)

Declaration
public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Collections.IDictionary propertyValues
Returns
Type Description
System.Object
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetCreateInstanceSupported(ITypeDescriptorContext)

Declaration
public override bool GetCreateInstanceSupported(ITypeDescriptorContext context)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
| Improve this Doc View Source

GetProperties(ITypeDescriptorContext, Object, Attribute[])

Declaration
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Object value
System.Attribute[] attributes
Returns
Type Description
System.ComponentModel.PropertyDescriptorCollection
| Improve this Doc View Source

GetPropertiesSupported(ITypeDescriptorContext)

Declaration
public override bool GetPropertiesSupported(ITypeDescriptorContext context)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetStandardValues(ITypeDescriptorContext)

Declaration
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
Returns
Type Description
System.ComponentModel.TypeConverter.StandardValuesCollection
| Improve this Doc View Source

GetStandardValuesExclusive(ITypeDescriptorContext)

Declaration
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetStandardValuesSupported(ITypeDescriptorContext)

Declaration
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsValid(ITypeDescriptorContext, Object)

Declaration
public override bool IsValid(ITypeDescriptorContext context, object value)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Object value
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String