I got the following exception, which seems to indicate that Guidit is not an object.
An expression of type 'System.Guid' cannot be used for the return type 'System.Object'
How Guidnot an object?
And how does the compiler understand this? There must be something that allows me to detect at runtime when the type is not an object, if so, what would it be?
===================== Edit with more information =====================
Expression.Lambda<Func<object>>(SomeExpression)
Where SomeExpression can be a constant Guid value, for everything that matters.
source
share