ObjectHydrator icon indicating copy to clipboard operation
ObjectHydrator copied to clipboard

new Hydrator<T>().With(x=>x.PropertyReturnsByte, 1) throws InvalidCastException

Open lukefan6 opened this issue 9 years ago • 0 comments

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'.

lukefan6 avatar Dec 04 '15 06:12 lukefan6