| LineEndingModeLineEndingModeConverterCanConvertFrom Method (ITypeDescriptorContext, Type) |
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public override bool CanConvertFrom(
ITypeDescriptorContext context,
Type sourceType
)
Public Overrides Function CanConvertFrom (
context As ITypeDescriptorContext,
sourceType As Type
) As Boolean
Dim instance As LineEndingModeLineEndingModeConverter
Dim context As ITypeDescriptorContext
Dim sourceType As Type
Dim returnValue As Boolean
returnValue = instance.CanConvertFrom(context,
sourceType)
abstract CanConvertFrom :
context : ITypeDescriptorContext *
sourceType : Type -> bool
override CanConvertFrom :
context : ITypeDescriptorContext *
sourceType : Type -> bool
Parameters
- context
- Type: System.ComponentModelITypeDescriptorContext
An ITypeDescriptorContext that provides a format context. - sourceType
- Type: SystemType
A Type that represents the type you want to convert from.
Return Value
Type:
Boolean if this converter can perform the conversion; otherwise,
.
See Also