C# Class Raven.Database.Linq.Ast.TransformNullCoalasingOperatorTransformer

Inheritance: ICSharpCode.NRefactory.Visitors.AbstractAstTransformer
Mostra file Open project: nhsevidence/ravendb

Public Methods

Method Description
VisitBinaryOperatorExpression ( BinaryOperatorExpression binaryOperatorExpression, object data ) : object

We have to replace code such as: doc.FirstName ?? "" Into doc.FirstName != null ? doc.FirstName : "" Because we use DynamicNullObject instead of null, and that preserve the null coallasing semantics.

Method Details

VisitBinaryOperatorExpression() public method

We have to replace code such as: doc.FirstName ?? "" Into doc.FirstName != null ? doc.FirstName : "" Because we use DynamicNullObject instead of null, and that preserve the null coallasing semantics.
public VisitBinaryOperatorExpression ( BinaryOperatorExpression binaryOperatorExpression, object data ) : object
binaryOperatorExpression ICSharpCode.NRefactory.Ast.BinaryOperatorExpression
data object
return object