コード例 #1
0
    // Use this for initialization
    void Start()
    {
        print(testVal.GetType());
        print(testVal.GetType() == typeof(int));
        testClass testInstance = new testClass();

        print(testInstance.GetType());
        print(testInstance.GetType() == typeof(testClass));
    }
コード例 #2
0
        public void CanMapClassWithProperties()
        {
            var c = new testClass {
                y = 2
            };

            Assert.IsTrue(intStruct.CanBeAssignedFromType(c.GetType()));
        }