The documentation of the expression
parameter of Expression.PropertyOrField
states that it can be null
for static members:
An Expression whose
Type
contains a property or field namedpropertyOrFieldName
. This can benull
for static members.
(Emphasis mine)
However, whenever I pass null
I get an ArgumentNullException
.