IConvertTo CanConvertTo Method | Apache log4net™ SDK Documentation

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

Namespace: log4net.Util.TypeConverters
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    bool CanConvertTo(
    	Type targetType
    )

    Function CanConvertTo (
    	targetType As Type
    ) As Boolean

    bool CanConvertTo(
    	Type^ targetType
    )

    abstract CanConvertTo :
            targetType : Type -> bool

#### Parameters

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

#### Return Value

Type: Boolean
true if the conversion is possible
Remarks

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

See Also

#### Reference

IConvertTo Interface
log4net.Util.TypeConverters Namespace