Class TypeExtensions
Inheritance
TypeExtensions
Assembly: Estrelica.Utility.dll
Syntax
[DoNotObfuscateType]
public static class TypeExtensions
Methods
Declaration
public static V ConvertTo<V>(this object value)
Parameters
Returns
Type Parameters
Declaration
public static Type GetCommonBaseClass(this IEnumerable<Type> collectedTypes)
Parameters
Returns
Declaration
public static bool IsCastableTo(this Type from, Type to, bool implicitly = false)
Parameters
Returns
Declaration
public static bool IsNullable<T>()
Returns
Type Parameters
Declaration
public static string TrueName(this Type t, bool fullName = false, string defaultIfNull = "(null)")
Parameters
Returns
Declaration
public static bool TryConvert<V>(this object value, out V convertedValue)
Parameters
Returns
Type Parameters
Declaration
public static V WithDispose<T, V>(this T resource, Func<T, V> operation)
Parameters
T
resource
|
Func<T, V>
operation
|
Returns
Type Parameters