Ejemplo n.º 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>();
        }
Ejemplo n.º 3
0
 public bool IntrinsicMethod() => Intrinsics.IsExactTypeOf <int>(Obj);
Ejemplo n.º 4
0
        public bool DetectNullableType()
        {
            var vt = Intrinsics.IsNullable <ValueFunc <int, int> >();

            return(vt |= Intrinsics.IsNullable <StringBuilder>());
        }
Ejemplo n.º 5
0
        public bool DetectNullableType()
        {
            var vt = Intrinsics.IsNullable <Guid>();

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