C# Класс Qowaiv.Conversion.EmailAddressTypeConverter

Provides a conversion for an email address.
Наследование: System.ComponentModel.TypeConverter
Показать файл Открыть проект

Открытые методы

Метод Описание
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Returns whether this converter can convert an string to an email address, using the specified context.

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

Converts a string to an email address, using the specified context and culture information.

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

Converts an email address to string, using the specified context and culture information.

Описание методов

CanConvertFrom() публичный Метод

Returns whether this converter can convert an string to an email address, using the specified context.
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext /// An System.ComponentModel.ITypeDescriptorContext that provides a format context. ///
sourceType System.Type /// A System.Type that represents the type you want to convert from. ///
Результат bool

ConvertFrom() публичный Метод

Converts a string to an email address, using the specified context and culture information.
/// The conversion cannot be performed. ///
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext /// An System.ComponentModel.ITypeDescriptorContext that provides a format context. ///
culture System.Globalization.CultureInfo /// The System.Globalization.CultureInfo to use as the current culture. ///
value object /// The System.Object to convert. ///
Результат object

ConvertTo() публичный Метод

Converts an email address to string, using the specified context and culture information.
/// The destinationType parameter is null. /// /// The conversion cannot be performed. ///
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext /// An System.ComponentModel.ITypeDescriptorContext that provides a format context. ///
culture System.Globalization.CultureInfo /// A System.Globalization.CultureInfo. If null is passed, the current culture is assumed. ///
value object /// The email address to convert. ///
destinationType System.Type /// The System.Type to convert the value parameter to. ///
Результат object