DynamicMetaObject.Create Method

Creates a meta-object for the specified object.

Namespace:  System.Dynamic
Assembly:  System.Core (in System.Core.dll)

public static DynamicMetaObject Create(
	Object value,
	Expression expression


Type: System.Object
The object to get a meta-object for.
Type: System.Linq.Expressions.Expression
The expression representing this DynamicMetaObject during the dynamic binding process.

Return Value

Type: System.Dynamic.DynamicMetaObject
If the given object implements IDynamicMetaObjectProvider and is not a remote object from outside the current AppDomain, returns the object's specific meta-object returned by GetMetaObject. Otherwise a plain new meta-object with no restrictions is created and returned.


Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.