Click or drag to resize

ExpressionParameterRewriterTFrom, TTo, TReturn Class

Converts TFrom to TTo
Inheritance Hierarchy
SystemObject
  System.Linq.ExpressionsExpressionVisitor
    SanteDB.Core.Model.QueryExpressionParameterRewriterTFrom, TTo, TReturn

Namespace: SanteDB.Core.Model.Query
Assembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntax
public class ExpressionParameterRewriter<TFrom, TTo, TReturn> : ExpressionVisitor

Type Parameters

TFrom

[Missing <typeparam name="TFrom"/> documentation for "T:SanteDB.Core.Model.Query.ExpressionParameterRewriter`3"]

TTo

[Missing <typeparam name="TTo"/> documentation for "T:SanteDB.Core.Model.Query.ExpressionParameterRewriter`3"]

TReturn

[Missing <typeparam name="TReturn"/> documentation for "T:SanteDB.Core.Model.Query.ExpressionParameterRewriter`3"]

The ExpressionParameterRewriterTFrom, TTo, TReturn type exposes the following members.

Constructors
 NameDescription
Public methodExpressionParameterRewriterTFrom, TTo, TReturn Creates a new expression return visitor
Top
Methods
 NameDescription
Public methodConvert Perform the conversion logic
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodVisit(Expression)Dispatches the expression to one of the more specialized visit methods in this class.
(Inherited from ExpressionVisitor)
Public methodVisit(ReadOnlyCollectionExpression)Dispatches the list of expressions to one of the more specialized visit methods in this class.
(Inherited from ExpressionVisitor)
Public methodVisitAndConvertT(ReadOnlyCollectionT, String)Visits all expressions in the collection, casting the results back to the original expression type.
(Inherited from ExpressionVisitor)
Public methodVisitAndConvertT(T, String)Visits an expression, casting the result back to the original expression type.
(Inherited from ExpressionVisitor)
Protected methodVisitBinaryVisits the children of the BinaryExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitBlockVisits the children of the BlockExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitCatchBlockVisits the children of the CatchBlock.
(Inherited from ExpressionVisitor)
Protected methodVisitConditionalVisits the children of the ConditionalExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitConstantVisits the ConstantExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitDebugInfoVisits the DebugInfoExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitDefaultVisits the DefaultExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitDynamicVisits the children of the DynamicExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitElementInitVisits the children of the ElementInit.
(Inherited from ExpressionVisitor)
Protected methodVisitExtensionVisits the children of the extension expression.
(Inherited from ExpressionVisitor)
Protected methodVisitGotoVisits the children of the GotoExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitIndexVisits the children of the IndexExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitInvocationVisits the children of the InvocationExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitLabelVisits the children of the LabelExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitLabelTargetVisits the LabelTarget.
(Inherited from ExpressionVisitor)
Protected methodVisitLambdaT(ExpressionT)Visits the children of the ExpressionTDelegate.
(Overrides ExpressionVisitorVisitLambdaT(ExpressionT))
Protected methodVisitLambdaT(ExpressionT)Visits the children of the ExpressionTDelegate.
(Inherited from ExpressionVisitor)
Protected methodVisitListInitVisits the children of the ListInitExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitLoopVisits the children of the LoopExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitMember Visit the specified member
(Overrides ExpressionVisitorVisitMember(MemberExpression))
Protected methodVisitMemberAssignmentVisits the children of the MemberAssignment.
(Inherited from ExpressionVisitor)
Protected methodVisitMemberBindingVisits the children of the MemberBinding.
(Inherited from ExpressionVisitor)
Protected methodVisitMemberInitVisits the children of the MemberInitExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitMemberListBindingVisits the children of the MemberListBinding.
(Inherited from ExpressionVisitor)
Protected methodVisitMemberMemberBindingVisits the children of the MemberMemberBinding.
(Inherited from ExpressionVisitor)
Protected methodVisitMethodCallVisits the children of the MethodCallExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitNewVisits the children of the NewExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitNewArrayVisits the children of the NewArrayExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitParameterVisits the ParameterExpression.
(Overrides ExpressionVisitorVisitParameter(ParameterExpression))
Protected methodVisitRuntimeVariablesVisits the children of the RuntimeVariablesExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitSwitchVisits the children of the SwitchExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitSwitchCaseVisits the children of the SwitchCase.
(Inherited from ExpressionVisitor)
Protected methodVisitTryVisits the children of the TryExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitTypeBinaryVisits the children of the TypeBinaryExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitUnaryVisits the children of the UnaryExpression.
(Inherited from ExpressionVisitor)
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
Remarks
Quick and dirty solution from https://stackoverflow.com/questions/14437239/change-a-linq-expression-predicate-from-one-type-to-another
See Also