Xamarin.Forms | ComponentOne
C1.Xamarin.Forms.Core Assembly / C1.Xamarin.Forms.Core Namespace / C1TimeSpanTypeConverter Class / CanConvertFrom Method
To type to be converted.


In This Topic
    CanConvertFrom Method (C1TimeSpanTypeConverter)
    In This Topic
    Returns a Boolean value that indicates whether or not the derived type converter can convert sourceType to its target type.
    Syntax
    'Declaration
     
    
    Public Overrides Function CanConvertFrom( _
       ByVal sourceType As Type _
    ) As Boolean
    'Usage
     
    
    Dim instance As C1TimeSpanTypeConverter
    Dim sourceType As Type
    Dim value As Boolean
     
    value = instance.CanConvertFrom(sourceType)
    public override bool CanConvertFrom( 
       Type sourceType
    )

    Parameters

    sourceType
    To type to be converted.
    See Also