I'm trying to get the null coallescing operator to work with a LINQ expression in ASP.NET MVC.
Here is my expression.
<%= Html.Encode(item.Ring.Keys.Single<ProjectOne.Key>( k => k.Literal.Value == "Class" ).KeyValue) %>
Basically, it finds an instance of the "Key" class based on the given Name, the name being the title, the result being the Value of the Key. I want to return a null string if it doesn't find a matching key.