This works
Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
Poject(p=> p.PropertyName??"")
But in the where clause of a LINQ query
Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
where string.IsNullOrEmpty(product.PropertyName??"")
I get the error
InvalidOperationException: ({document}{propertyName} ?? "") is not supported. MongoDB.Driver.Linq.Translators.PredicateTranslator.GetFieldExpression(Expression expression)