C# Class IdeaBlade.Windows.ParameterTypeConverter

TypeConverter for the Parameter type.
Inheritance: System.ComponentModel.TypeConverter
Mostra file Open project: IdeaBlade/DevForce.Utilities

Public Methods

Method Description
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Returns true if converting from a string to a Parameter.

CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Returns true if converting from a Parameter to a string.

ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object

Returns a Parameter from the given string.

ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object

Returns the string representation of a Parameter.

Method Details

CanConvertFrom() public method

Returns true if converting from a string to a Parameter.
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
return bool

CanConvertTo() public method

Returns true if converting from a Parameter to a string.
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
return bool

ConvertFrom() public method

Returns a Parameter from the given string.
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
return object

ConvertTo() public method

Returns the string representation of a Parameter.
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
return object