<PackageReference Include="System.Dynamic.Runtime" Version="4.0.11-beta-23409" />

DynamicObject

Provides a base class for specifying dynamic behavior at run time. This class must be inherited from; you cannot instantiate it directly.
protected DynamicObject()

Enables derived types to initialize a new instance of the DynamicObject type.

public virtual IEnumerable<string> GetDynamicMemberNames()

Returns the enumeration of all dynamic member names.

public virtual DynamicMetaObject GetMetaObject(Expression parameter)

Provides a DynamicMetaObject that dispatches to the dynamic virtual methods. The object can be encapsulated inside another DynamicMetaObject to provide custom behavior for individual actions. This method supports the Dynamic Language Runtime infrastructure for language implementers and it is not intended to be used directly from your code.

public virtual bool TryBinaryOperation(BinaryOperationBinder binder, object arg, out object result)

Provides implementation for binary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as addition and multiplication.

public virtual bool TryConvert(ConvertBinder binder, out object result)

Provides implementation for type conversion operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that convert an object from one type to another.

public virtual bool TryCreateInstance(CreateInstanceBinder binder, object[] args, out object result)

Provides the implementation for operations that initialize a new instance of a dynamic object. This method is not intended for use in C# or Visual Basic.

public virtual bool TryDeleteIndex(DeleteIndexBinder binder, object[] indexes)

Provides the implementation for operations that delete an object by index. This method is not intended for use in C# or Visual Basic.

public virtual bool TryDeleteMember(DeleteMemberBinder binder)

Provides the implementation for operations that delete an object member. This method is not intended for use in C# or Visual Basic.

public virtual bool TryGetIndex(GetIndexBinder binder, object[] indexes, out object result)

Provides the implementation for operations that get a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for indexing operations.

public virtual bool TryGetMember(GetMemberBinder binder, out object result)

Provides the implementation for operations that get member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.

public virtual bool TryInvoke(InvokeBinder binder, object[] args, out object result)

Provides the implementation for operations that invoke an object. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as invoking an object or a delegate.

public virtual bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result)

Provides the implementation for operations that invoke a member. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.

public virtual bool TrySetIndex(SetIndexBinder binder, object[] indexes, object value)

Provides the implementation for operations that set a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that access objects by a specified index.

public virtual bool TrySetMember(SetMemberBinder binder, object value)

Provides the implementation for operations that set member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.

public virtual bool TryUnaryOperation(UnaryOperationBinder binder, out object result)

Provides implementation for unary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as negation, increment, or decrement.