Beispiel #1
0
        public void TestAccessIndexer()
        {
            IReflector r = Reflector.Bind(new ReflectSampleClass1(), ReflectorPolicy.InstancePublic);

            Assert.AreEqual(5, r.GetIndexerValue(new object[] { 5 }));

            r.SetIndexerValue(new object[] { 3 }, 4);

            var cs = r.FindAllConstructors();
        }