Esempio n. 1
0
        public void IsValueType_Test()
        {
            var obj1 = 12;

            Assert.IsTrue(obj1.IsValueType());
            var obj2 = "";

            Assert.IsFalse(obj2.IsValueType());
            var obj3 = new MyClass();

            Assert.IsFalse(obj3.IsValueType());
            var obj4 = new MyStruct();

            Assert.IsTrue(obj4.IsValueType());
            var obj5 = new DateTime();

            Assert.IsTrue(obj5.IsValueType());
        }