IConvertFrom CanConvertFrom Method | Apache log4net™ SDK Documentation

Can the source type be converted to the type supported by this object

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

C#
VB
C++
F#
Copy

    bool CanConvertFrom(
    	Type sourceType
    )

    Function CanConvertFrom (
    	sourceType As Type
    ) As Boolean

    bool CanConvertFrom(
    	Type^ sourceType
    )

    abstract CanConvertFrom :
            sourceType : Type -> bool

#### Parameters

sourceType
  Type: System
  Type
  the type to convert

#### Return Value

Type: Boolean
true if the conversion is possible
Remarks

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

See Also

#### Reference

IConvertFrom Interface
log4net.Util.TypeConverters Namespace