Example #1
0
        private void Teste_22222()
        {
            //Dynamic d = new Dynamic();
            //d = d.Add("MyProperty", 42);
            //Console.WriteLine(d.GetType().GetProperty("MyProperty").GetValue(d, null));

            FrmDestaque a = new FrmDestaque();

            a = a.Add("MyProperty", 42);

            PropertyInfo propertyInfo = a.GetType().GetProperty("MyProperty");

            Console.WriteLine(propertyInfo.GetValue(a, null));
        }