ObjectHydrator
ObjectHydrator copied to clipboard
new Hydrator<T>().With(x=>x.PropertyReturnsByte, 1) throws InvalidCastException
Let's say I have a class like this class Test { byte PropertyReturnsByte{get;set; }
Then using new Hydrator<Test>().With(x=>x.PropertyReturnsByte, 1) ; will throw InvalidCastException Unable to cast object of type 'System.Linq.Expressions.UnaryExpression' to type 'System.Linq.Expressions.MemberExpression'.