Click or drag to resize
ExpressionFormatter Class
A class that formats an Expression as a string.
Inheritance Hierarchy

Namespace: MongoDB.Driver.Linq
Assembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.4.1
Syntax
public class ExpressionFormatter : ExpressionVisitor

The ExpressionFormatter type exposes the following members.

Constructors
  NameDescription
Public methodExpressionFormatter
Initializes a new instance of the ExpressionFormatter class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the Expression.
(Overrides ObjectToString.)
Public methodStatic memberToString(Expression)
Returns a string that represents the Expression.
Protected methodVisit(ReadOnlyCollectionExpression)
Visits an Expression list.
(Inherited from ExpressionVisitor.)
Protected methodVisit(Expression)
Visits an Expression.
(Inherited from ExpressionVisitor.)
Protected methodVisitBinary
Visits a BinaryExpression.
(Overrides ExpressionVisitorVisitBinary(BinaryExpression).)
Protected methodVisitConditional
Visits a ConditionalExpression.
(Overrides ExpressionVisitorVisitConditional(ConditionalExpression).)
Protected methodVisitConstant
Visits a ConstantExpression.
(Overrides ExpressionVisitorVisitConstant(ConstantExpression).)
Protected methodVisitElementInit
Visits an ElementInit node.
(Overrides ExpressionVisitorVisitElementInit(ElementInit).)
Protected methodVisitElementInitList
Visits an ElementInit list.
(Overrides ExpressionVisitorVisitElementInitList(ReadOnlyCollectionElementInit).)
Protected methodVisitInvocation
Visits an InvocationExpression.
(Overrides ExpressionVisitorVisitInvocation(InvocationExpression).)
Protected methodVisitLambda
Visits a LambdaExpression.
(Overrides ExpressionVisitorVisitLambda(LambdaExpression).)
Protected methodVisitListInit
Visits a ListInitExpression.
(Overrides ExpressionVisitorVisitListInit(ListInitExpression).)
Protected methodVisitMember
Visits a MemberExpression.
(Overrides ExpressionVisitorVisitMember(MemberExpression).)
Protected methodVisitMemberAssignment
Visits a MemberAssignment.
(Overrides ExpressionVisitorVisitMemberAssignment(MemberAssignment).)
Protected methodVisitMemberBinding
Visits a MemberBinding.
(Overrides ExpressionVisitorVisitMemberBinding(MemberBinding).)
Protected methodVisitMemberBindingList
Visits a MemberBinding list.
(Overrides ExpressionVisitorVisitMemberBindingList(ReadOnlyCollectionMemberBinding).)
Protected methodVisitMemberInit
Visits a MemberInitExpression.
(Overrides ExpressionVisitorVisitMemberInit(MemberInitExpression).)
Protected methodVisitMemberListBinding
Visits a MemberListBinding.
(Overrides ExpressionVisitorVisitMemberListBinding(MemberListBinding).)
Protected methodVisitMemberMemberBinding
Visits a MemberMemberBinding.
(Overrides ExpressionVisitorVisitMemberMemberBinding(MemberMemberBinding).)
Protected methodVisitMethodCall
Visits a MethodCallExpression.
(Overrides ExpressionVisitorVisitMethodCall(MethodCallExpression).)
Protected methodVisitNew
Visits a NewExpression.
(Overrides ExpressionVisitorVisitNew(NewExpression).)
Protected methodVisitNewArray
Visits a NewArrayExpression.
(Overrides ExpressionVisitorVisitNewArray(NewArrayExpression).)
Protected methodVisitParameter
Visits a ParameterExpression.
(Overrides ExpressionVisitorVisitParameter(ParameterExpression).)
Protected methodVisitTypeBinary
Visits a TypeBinaryExpression.
(Overrides ExpressionVisitorVisitTypeBinary(TypeBinaryExpression).)
Protected methodVisitUnary
Visits a UnaryExpression.
(Overrides ExpressionVisitorVisitUnary(UnaryExpression).)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also