示例#1
0
        public void GetFieldValueBoxed()
        {
            Tester tester = new Tester();
            var    id     = LateBinder.GetField(tester, "_id");

            Assert.AreEqual(888, id);
        }
示例#2
0
        public void GetFieldValue()
        {
            Tester tester = new Tester();
            string name   = LateBinder.GetField(tester, "_name").ToString();

            Assert.AreEqual("test", name);
        }