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 }
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)); }