コード例 #1
0
        public void Parse_GetPredicate()
        {
            // Find method of list need Type Predicate

            var predicate = DynamicExpression.GetPredicate <Customer>("EmpID==1");
            var customer  = CustomerList.Find(predicate);

            Assert.AreEqual(customer.EmpId, 1);
        }