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 <see langword="true" /> if the conversion succeeded; otherwise, <see langword="false" />.

Description

Converts the specified value from <typeparamref name="TSource" /> to <typeparamref name="TDestination" />.


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