Méthode | Description | |
---|---|---|
TryGetMember ( |
Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.
|
|
TrySetMember ( |
Provides the implementation for operations that set member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.
|
Méthode | Description | |
---|---|---|
DynamicEntity ( IEntity entity ) : System | ||
SpecificObjectInvariant ( ) : void |
public TryGetMember ( |
||
binder | Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the Console.WriteLine(sampleObject.SampleProperty) statement, where sampleObject is an instance of the class derived from the |
|
result | object | The result of the get operation. For example, if the method is called for a property, you can assign the property value to |
Résultat | bool |
public TrySetMember ( |
||
binder | Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member to which the value is being assigned. For example, for the statement sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the |
|
value | object | The value to set to the member. For example, for sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the |
Résultat | bool |