SpecificationTVisit Method |
Visits the specification and lets visitor convert the contents of the specification into an expression that can
be used to perform the actual filtering/selection.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework.Specifications (in Enkoni.Framework.Specifications.dll) Version: 1.3.0.1
Syntaxpublic Expression<Func<T, bool>> Visit(
ISpecificationVisitor<T> visitor
)
Public Function Visit (
visitor As ISpecificationVisitor(Of T)
) As Expression(Of Func(Of T, Boolean))
public:
virtual Expression<Func<T, bool>^>^ Visit(
ISpecificationVisitor<T>^ visitor
) sealed
abstract Visit :
visitor : ISpecificationVisitor<'T> -> Expression<Func<'T, bool>>
override Visit :
visitor : ISpecificationVisitor<'T> -> Expression<Func<'T, bool>>
Parameters
- visitor
- Type: Enkoni.FrameworkISpecificationVisitorT
The instance that will perform the conversion.
Return Value
Type:
ExpressionFuncT,
BooleanThe expression that was created using this specification.
Implements
ISpecificationTVisit(ISpecificationVisitorT)
Exceptions
See Also