public bool IsTypeOfTest <T>(T value, Type typeComparison) { bool result = TypeTestingUtility.IsTypeOf <T>(value, typeComparison); return(result); // TODO: add assertions to method TypeTestingUtilityTests.IsTypeOfTest(!!0, Type) }
public bool IsValueTypeOfTest <T>(T value) { bool result = TypeTestingUtility.IsValueTypeOf <T>(value); return(result); // TODO: add assertions to method TypeTestingUtilityTests.IsValueTypeOfTest(!!0) }
public bool IsNotBoxedTypeOfTest <T>(object valueBoxed) { bool result = TypeTestingUtility.IsNotBoxedTypeOf <T>(valueBoxed); return(result); // TODO: add assertions to method TypeTestingUtilityTests.IsNotBoxedTypeOfTest(Object) }
/// <summary> /// Checks if the <paramref name="value"/> type is a value type. /// </summary> /// <typeparam name="T">The type to test.</typeparam> /// <param name="value">The <typeparamref name="T"/> to check.</param> /// <returns> /// <see langword="true"/> if the <paramref name="value"/> is a value type; otherwise, <see langword="false"/>. /// </returns> public static Boolean IsValueTypeOf <T>([CanBeNull] this T value) { return(TypeTestingUtility.IsValueTypeOf(value)); }
/// <summary> /// Checks if the <paramref name="value"/> type is equal to the <paramref name="typeComparison"/>. /// </summary> /// <typeparam name="T">The type to test.</typeparam> /// <param name="value">The <typeparamref name="T"/> to check.</param> /// <param name="typeComparison">The type to compare <paramref name="value"/> to.</param> /// <returns> /// <see langword="true"/> if the <paramref name="value"/> type is equal to the <paramref name="typeComparison"/>; otherwise, <see langword="false"/>. /// </returns> public static Boolean IsTypeOf <T>([CanBeNull] this T value, [CanBeNull] Type typeComparison) { return(TypeTestingUtility.IsTypeOf(value, typeComparison)); }
public static Boolean IsNullableType <T>([CanBeNull] this T value) { return(TypeTestingUtility.IsNullableType(value)); }
public static Boolean IsNotBoxedTypeOf <T>([CanBeNull] this Object valueBoxed) { return(TypeTestingUtility.IsNotBoxedTypeOf <T>(valueBoxed)); }