I just got the following exception, which seems to indicate that Guid
is not an object.
Expression of type 'System.Guid' cannot be used for return type 'System.Object'
How is Guid
not an object?
And how does the compiler figure this out? There must be something that would allow me to detect at runtime when a type is not an object, if so what would this be?
====================Edit with additional info====================
Expression.Lambda<Func<object>>(SomeExpression)
Where SomeExpression could be a constant value of a Guid, for all that matters.