I want to display a part of the string in view but I got this error:
<td>
@Html.DisplayFor(modelItem => item.Expert.Split("@")[1])
</td>
but item.Expert.length is working properly. what should I do?
update: the error is: Severity Code Description Project File Line Suppression State Error (active) CS0854 An expression tree may not contain a call or invocation that uses optional arguments