public void TestMapper() { var dumper = new PropertyDumper <Person>(); var dump1 = dumper.Dump(p => p.Name); var dump2 = dumper.Dump(p => p.Age); Assert.Equal("String Name", dump1); Assert.Equal("Int32 Age", dump2); }
static void Main(string[] args) { DateTime dt = DateTime.MaxValue; var product = new Tuple <int, string, decimal>(1, "Box", 50); PropertyDumper.Dump(dt); PropertyDumper.Dump(product); }
private void button1_Click(object sender, EventArgs e) { PropertyDumper.Dump(sender, s => listBox1.Items.Add(s)); }