示例#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>();
        }
 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>());
        }