DynamicExpression Class

DynamicExpression Class

.NET Framework (current version)
 

Represents a dynamic operation.

Namespace:   System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

System.Object
  System.Linq.Expressions.Expression
    System.Linq.Expressions.DynamicExpression

public class DynamicExpression : Expression, IDynamicExpression, 
	IArgumentProvider

NameDescription
System_CAPS_pubpropertyArguments

Gets the arguments to the dynamic operation.

System_CAPS_pubpropertyBinder

Gets the CallSiteBinder, which determines the run-time behavior of the dynamic site.

System_CAPS_pubpropertyCanReduce

Indicates that the node can be reduced to a simpler node. If this returns true, Reduce() can be called to produce the reduced form.(Inherited from Expression.)

System_CAPS_pubpropertyDelegateType

Gets the type of the delegate used by the CallSite.

System_CAPS_pubpropertyNodeType

Returns the node type of this expression. Extension nodes should return Extension when overriding this method.(Overrides Expression.NodeType.)

System_CAPS_pubpropertyType

Gets the static type of the expression that this Expression represents.(Overrides Expression.Type.)

NameDescription
System_CAPS_protmethodAccept(ExpressionVisitor)

Dispatches to the specific visit method for this node type. For example, MethodCallExpression calls the VisitMethodCall.(Overrides Expression.Accept(ExpressionVisitor).)

System_CAPS_pubmethodSystem_CAPS_staticDynamic(CallSiteBinder, Type, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

System_CAPS_pubmethodSystem_CAPS_staticDynamic(CallSiteBinder, Type, Expression, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

System_CAPS_pubmethodSystem_CAPS_staticDynamic(CallSiteBinder, Type, Expression, Expression, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

System_CAPS_pubmethodSystem_CAPS_staticDynamic(CallSiteBinder, Type, Expression, Expression, Expression, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

System_CAPS_pubmethodSystem_CAPS_staticDynamic(CallSiteBinder, Type, Expression[])

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

System_CAPS_pubmethodSystem_CAPS_staticDynamic(CallSiteBinder, Type, IEnumerable<Expression>)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticMakeDynamic(Type, CallSiteBinder, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and one argument.

System_CAPS_pubmethodSystem_CAPS_staticMakeDynamic(Type, CallSiteBinder, Expression, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and two arguments.

System_CAPS_pubmethodSystem_CAPS_staticMakeDynamic(Type, CallSiteBinder, Expression, Expression, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and three arguments.

System_CAPS_pubmethodSystem_CAPS_staticMakeDynamic(Type, CallSiteBinder, Expression, Expression, Expression, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and four arguments.

System_CAPS_pubmethodSystem_CAPS_staticMakeDynamic(Type, CallSiteBinder, Expression[])

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

System_CAPS_pubmethodSystem_CAPS_staticMakeDynamic(Type, CallSiteBinder, IEnumerable<Expression>)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodReduce()

Reduces this node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method can return another node which itself must be reduced.(Inherited from Expression.)

System_CAPS_pubmethodReduceAndCheck()

Reduces this node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method can return another node which itself must be reduced.(Inherited from Expression.)

System_CAPS_pubmethodReduceExtensions()

Reduces the expression to a known node type (that is not an Extension node) or just returns the expression if it is already a known type.(Inherited from Expression.)

System_CAPS_pubmethodToString()

Returns a textual representation of the Expression.(Inherited from Expression.)

System_CAPS_pubmethodUpdate(IEnumerable<Expression>)

Compares the value sent to the parameter, arguments, to the Arguments property of the current instance of DynamicExpression. If the values of the parameter and the property are equal, the current instance is returned. If they are not equal, a new DynamicExpression instance is returned that is identical to the current instance except that the Arguments property is set to the value of parameter arguments.

System_CAPS_protmethodVisitChildren(ExpressionVisitor)

Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.(Inherited from Expression.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIArgumentProvider.GetArgument(Int32)

Returns the argument at index, throwing if index is out of bounds. You should not use this member. It is only public due to assembly refactoring, and it is used internally for performance optimizations.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDynamicExpression.CreateCallSite()

Optionally creates the CallSite and returns the CallSite for the DynamicExpression’s polymorphic inline cache. You should not use this member. It is only public due to assembly refactoring, and it is used internally for performance optimizations.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDynamicExpression.Rewrite(Expression[])

Rewrite this node replacing the dynamic expression’s arguments with the provided values. The number of args needs to match the number of the current expression. You should not use this type. It is only public due to assembly refactoring, and it is used internally for performance optimizations. This helper method allows re-writing of nodes to be independent of the specific implementation class deriving from DynamicExpression that is being used at the call site.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIArgumentProvider.ArgumentCount

Returns the number of arguments to the expression tree node. You should not use this member. It is only public due to assembly refactoring, and it is used internally for performance optimizations.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft