Пример #1
0
        public void GetValue_Property()
        {
            var reader = new PropertyReader <Foo>();
            var foo    = new Foo
            {
                Bar = "baz"
            };

            Assert.AreEqual("baz", reader.GetValue <string>(foo, nameof(Foo.Bar)));

            reader.GetValues(foo, new ExpressionList <Foo>
            {
                x => x.Bar
            });
        }