Ejemplo n.º 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));
    }
Ejemplo n.º 2
0
        public void CanMapClassWithProperties()
        {
            var c = new testClass {
                y = 2
            };

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