Class RepositoryTypeConverter
- Namespace
- HeBianGu.Systems.Repository
- Assembly
- HeBianGu.Systems.Repository.dll
public class RepositoryTypeConverter : TypeConverter
- Inheritance
-
RepositoryTypeConverter
- Inherited Members
- Extension Methods
Methods
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts the given object to the type of this converter, using the specified context and culture information.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
cultureCultureInfoThe CultureInfo to use as the current culture.
valueobjectThe object to convert.
Returns
Exceptions
- NotSupportedException
The conversion cannot be performed.
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts the given value object to the specified type, using the specified context and culture information.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
cultureCultureInfoA CultureInfo. If null is passed, the current culture is assumed.
valueobjectThe object to convert.
destinationTypeTypeThe Type to convert the
valueparameter to.
Returns
Exceptions
- ArgumentNullException
The
destinationTypeparameter is null.- NotSupportedException
The conversion cannot be performed.