TypeConversion.TryConvert

Declaration

public static bool TryConvert(ref TSource source, out TDestination destination);

Parameters

source The source value to convert.
destination When this method returns, contains the converted destination value if the conversion succeeded; otherwise, default.

Returns

bool true if the conversion succeeded; otherwise, false.

Description

Converts the specified value from TSource to TDestination.


Did you find this page useful? Please give it a rating: