コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     PropertyDumper.Dump(sender, s => listBox1.Items.Add(s));
 }