Beispiel #1
0
        static void Main(string[] args)
        {
            dynamic obj = new SampleObject();
            Console.WriteLine(obj.SomeProperty);

            Console.Write("Press a key to exit");
            Console.ReadKey();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            dynamic obj = new SampleObject();

            Console.WriteLine(obj.SomeProperty);

            Console.Write("Press a key to exit");
            Console.ReadKey();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            dynamic obj = new SampleObject();
            Console.WriteLine(obj.SomeProperty);

            dynamic obj2 = new ExpandoObject();
            obj2.Test = "dit is een test property";
            Console.WriteLine(obj2.Test);

            Console.Write("Press a key to exit");
            Console.ReadKey();
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            dynamic obj = new SampleObject();

            Console.WriteLine(obj.SomeProperty);

            dynamic obj2 = new ExpandoObject();

            obj2.Test = "dit is een test property";
            Console.WriteLine(obj2.Test);

            Console.Write("Press a key to exit");
            Console.ReadKey();
        }