Exemple #1
0
 /// <summary>
 /// Converts the value to type U, using the 'Try' method pattern.
 /// </summary>
 /// <typeparam name="U">The type to be converted to.</typeparam>
 /// <param name="result">Out parameter the result of the conversion will be written to.</param>
 /// <returns>True if the conversion is successful.</returns>
 public bool TryTo <U>(out U result)
 => _converter.TryConvert(_value, out result);