Пример #1
0
 public static void IsNullable()
 {
     True(Intrinsics.IsNullable <string>());
     True(Intrinsics.IsNullable <ValueType>());
     True(Intrinsics.IsNullable <int?>());
     False(Intrinsics.IsNullable <int>());
     False(Intrinsics.IsNullable <IntPtr>());
 }
        public void DetectNullableType()
        {
            var vt = Intrinsics.IsNullable <ValueFunc <int, int> >();

            vt |= Intrinsics.IsNullable <StringBuilder>();
        }
Пример #3
0
 public bool IntrinsicMethod() => Intrinsics.IsExactTypeOf <int>(Obj);
Пример #4
0
        public bool DetectNullableType()
        {
            var vt = Intrinsics.IsNullable <ValueFunc <int, int> >();

            return(vt |= Intrinsics.IsNullable <StringBuilder>());
        }
Пример #5
0
        public bool DetectNullableType()
        {
            var vt = Intrinsics.IsNullable <Guid>();

            return(vt |= Intrinsics.IsNullable <StringBuilder>());
        }