dynamic type conversion


using System;

class Test
{
    static void Main()
    {
        int i = 5;
        dynamic d = i;
        int j = d;

        Console.WriteLine(j);
    }
}

The output:


5
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.