コード例 #1
0
 /// <summary>
 /// Determines whether this type can convert to the specified type.
 /// </summary>
 /// <param name="t">Type extension reference.</param>
 /// <param name="convertTo">The type to convert to.</param>
 /// <returns><c>true</c> if this instance can convert to the specified type; otherwise, <c>false</c>.</returns>
 public static bool CanConvertTo(this Type t, Type convertTo)
 {
     return(ConvertAny.CanConvert(t, convertTo));
 }