Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

OptionConverter.CanConvertTypeTo�Method�

Checks if there is an appropriate type conversion from the source type to the target type.

[Visual�Basic]
Public�Shared�Function�CanConvertTypeTo( _
���ByVal sourceType�As�Type,�_
���ByVal targetType�As�Type�_
)�As�Boolean
[C#]
public�static�bool�CanConvertTypeTo(
���TypesourceType,
���TypetargetType
);

Parameters

sourceType
The type to convert from.
targetType
The type to convert to.

Return Value

true if there is a conversion from the source type to the target type.

Remarks

Checks if there is an appropriate type conversion from the source type to the target type.

See Also

OptionConverter Class | log4net.Util Namespace