コード例 #1
0
    static public void Main(string[] args)
    {
        var test = new Dictionary <int, string>();

        test.Add(1, "One");
        Console.WriteLine(test);                  //outputs test
        Console.WriteLine(TEST.TestMethod(test)); //outputs slab
    }
コード例 #2
0
    static public void Main(string[] args)
    {
        dynamic test = new ExpandoObject();

        test.Text = "test";
        test.Slab = "slab";
        Console.WriteLine(test.Text);
        Console.WriteLine(TEST.TestMethod(test));
    }