Interface IConvertFrom
- Namespace
- log4net.Util.TypeConverters
- Assembly
- log4net.dll
Interface supported by type converters
public interface IConvertFrom
Remarks
This interface supports conversion from arbitrary types to a single target type. See TypeConverterAttribute.
Methods
CanConvertFrom(Type)
Can the source type be converted to the type supported by this object
bool CanConvertFrom(Type sourceType)
Parameters
sourceTypeTypethe type to convert
Returns
- bool
true if the conversion is possible
Remarks
Test if the sourceType can be converted to the
type supported by this converter.
ConvertFrom(object)
Convert the source object to the type supported by this object
object ConvertFrom(object source)
Parameters
sourceobjectthe object to convert
Returns
- object
the converted object
Remarks
Converts the source to the type supported
by this converter.