RawLayoutConverter CanConvertFrom Method | Apache log4net™ SDK Documentation

Can the sourceType be converted to an IRawLayout

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

C#
VB
C++
F#
Copy

    public bool CanConvertFrom(
    	Type sourceType
    )

    Public Function CanConvertFrom (
    	sourceType As Type
    ) As Boolean

    public:
    virtual bool CanConvertFrom(
    	Type^ sourceType
    ) sealed

    abstract CanConvertFrom :
            sourceType : Type -> bool
    override CanConvertFrom :
            sourceType : Type -> bool

#### Parameters

sourceType
  Type: System
  Type
  the source to be to be converted

#### Return Value

Type: Boolean
true if the source type can be converted to IRawLayout

#### Implements

IConvertFrom
CanConvertFrom(Type)
Remarks

Test if the sourceType can be converted to a IRawLayout. Only ILayout is supported as the sourceType.

See Also

#### Reference

RawLayoutConverter Class
log4net.Layout Namespace