log4net SDK Reference

IConvertTo.CanConvertTo Method 

[This is preliminary documentation and subject to change.]

Returns whether this converter can convert the object to the specified type

[Visual Basic]
Function CanConvertTo( _
   ByVal targetType As Type _
) As Boolean
[C#]
bool CanConvertTo(
   Type targetType
);

Parameters

targetType
A Type that represents the type you want to convert to

Return Value

true if the conversion is possible

Remarks

Test if the type supported by this converter can be converted to the targetType.

See Also

IConvertTo Interface | log4net.Util.TypeConverters Namespace