Operator '==' cannot be applied to operands of type 'TProperty' and 'TProperty' #6445
Answered
by
FaustVX
xiaodongcool
asked this question in
Q&A
-
|
Beta Was this translation helpful? Give feedback.
Answered by
FaustVX
Sep 10, 2022
Replies: 1 comment 2 replies
-
Because the compiler can't know if |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
333fred
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because the compiler can't know if
TProperty
declare an==
operator.You can do
_ => _.Name.Equals(name)