示例#1
0
        public void MethodHiding()
        {
            dynamic d = new TestDerivedClass();

            Assert.Equal("Hiding", d.Method(1, 2));
        }
示例#2
0
        public void NoArgumentMatch()
        {
            dynamic d = new TestDerivedClass();

            Assert.Throws <RuntimeBinderException>(() => d.Method());
        }