1
Vote

.NET 4 Troubles

description

If someone wants to run MicroModels unter .NET 4
you'ld better patch line 36 in MicroModels\Expressions\SafeExpressionEvaluator.cs
to:
 
while (firstParameterType.IsGenericType || (! firstParameterType.IsVisible)) firstParameterType = firstParameterType.BaseType;
 
reason: otherwise internal System.Linq.Expressions.PropertyExpression leads to troubles
 
greetings and MANY THX for your ideas :-)
 
Helmut

comments

seccomiro wrote Jan 10, 2012 at 5:37 PM

That's a really useful tip.
Today, I just spent five hours trying to solve this.

Tip: Try this if you are using .NET Framework 4 and getting the "Expressions of type PropertyExpression are not supported." exception message.

wrote Feb 13, 2013 at 5:55 PM