.NET Framework Class Library
DynamicObject Members

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

The DynamicObject type exposes the following members.

Constructors

  NameDescription
Protected methodDynamicObjectEnables derived types to initialize a new instance of the DynamicObject type.
Top
Methods

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDynamicMemberNamesReturns the enumeration of all dynamic member names.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetMetaObjectProvides 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 .NET Framework infrastructure and is not intended to be used directly from your code.
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 methodTryBinaryOperationProvides 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 methodTryConvertProvides 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 methodTryCreateInstanceProvides the implementation for operations that initialize a new instance of a dynamic object. This method cannot be used in C# or Visual Basic.
Public methodTryDeleteIndexProvides the implementation for operations that delete an object by index. This method cannot be used in C# or Visual Basic.
Public methodTryDeleteMemberProvides the implementation for operations that delete an object member. This method cannot be used in C# or Visual Basic.
Public methodTryGetIndexProvides 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 operations such as addition and multiplication.
Public methodTryGetMemberProvides 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 methodTryInvokeProvides 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 methodTryInvokeMemberProvides 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 methodTrySetIndexProvides 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 such as addition or multiplication.
Public methodTrySetMemberProvides 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 methodTryUnaryOperationProvides 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.
Top
See Also

Reference

Page view tracker