C# 클래스 Qowaiv.Web.Conversion.InternetMediaTypeTypeConverter

Provides a conversion for an internet media type.
상속: System.ComponentModel.TypeConverter
파일 보기 프로젝트 열기: Corniel/Qowaiv

공개 메소드들

메소드 설명
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Returns whether this converter can convert an string to an internet media type, using the specified context.

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

Converts a string to an internet media type, using the specified context and culture information.

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

Converts an internet media type to string, using the specified context and culture information.

메소드 상세

CanConvertFrom() 공개 메소드

Returns whether this converter can convert an string to an internet media type, 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 internet media type, 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 internet media type 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 internet media type to convert. ///
destinationType System.Type /// The System.Type to convert the value parameter to. ///
리턴 object