コード例 #1
0
        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)
        }
コード例 #2
0
        public bool IsValueTypeOfTest <T>(T value)
        {
            bool result = TypeTestingUtility.IsValueTypeOf <T>(value);

            return(result);
            // TODO: add assertions to method TypeTestingUtilityTests.IsValueTypeOfTest(!!0)
        }
コード例 #3
0
        public bool IsNotBoxedTypeOfTest <T>(object valueBoxed)
        {
            bool result = TypeTestingUtility.IsNotBoxedTypeOf <T>(valueBoxed);

            return(result);
            // TODO: add assertions to method TypeTestingUtilityTests.IsNotBoxedTypeOfTest(Object)
        }
コード例 #4
0
 /// <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));
 }
コード例 #5
0
 /// <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));
 }
コード例 #6
0
 public static Boolean IsNullableType <T>([CanBeNull] this T value)
 {
     return(TypeTestingUtility.IsNullableType(value));
 }
コード例 #7
0
 public static Boolean IsNotBoxedTypeOf <T>([CanBeNull] this Object valueBoxed)
 {
     return(TypeTestingUtility.IsNotBoxedTypeOf <T>(valueBoxed));
 }