C# Class Dynamitey.DynamicObjects.BaseForwarder

Proxies Calls allows subclasser to override do extra actions before or after base invocation
This may not be as efficient as other proxies that can work on just static objects or just dynamic objects... Consider this when using.
Inheritance: BaseObject, IForwarder
Show file Open project: ekonbenefits/dynamitey Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Equals ( BaseForwarder other ) : bool

Equals the specified other.

Equals ( object obj ) : bool

Determines whether the specified System.Object is equal to this instance.

GetDynamicMemberNames ( ) : IEnumerable

Returns the enumeration of all dynamic member names.

GetHashCode ( ) : int

Returns a hash code for this instance.

TryGetIndex ( GetIndexBinder binder, object indexes, object &result ) : bool

Tries the index of the get.

TryGetMember ( GetMemberBinder binder, object &result ) : bool

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.

TryInvoke ( InvokeBinder binder, object args, object &result ) : bool

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

TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool

Tries the invoke member.

TrySetIndex ( SetIndexBinder binder, object indexes, object value ) : bool

Tries the index of the set.

TrySetMember ( SetMemberBinder binder, object value ) : bool

Tries the set member.

Protected Methods

Method Description
BaseForwarder ( object target ) : System

Initializes a new instance of the BaseForwarder class.

Method Details

BaseForwarder() protected method

Initializes a new instance of the BaseForwarder class.
protected BaseForwarder ( object target ) : System
target object The target.
return System

Equals() public method

Equals the specified other.
public Equals ( BaseForwarder other ) : bool
other BaseForwarder The other.
return bool

Equals() public method

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
return bool

GetDynamicMemberNames() public method

Returns the enumeration of all dynamic member names.
public GetDynamicMemberNames ( ) : IEnumerable
return IEnumerable

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

TryGetIndex() public method

Tries the index of the get.
public TryGetIndex ( GetIndexBinder binder, object indexes, object &result ) : bool
binder System.Dynamic.GetIndexBinder The binder.
indexes object The indexes.
result object The result.
return bool

TryGetMember() public method

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.
public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder 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 class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
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 .
return bool

TryInvoke() public method

Provides the implementation for operations that invoke an object. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as invoking an object or a delegate.
public TryInvoke ( InvokeBinder binder, object args, object &result ) : bool
binder System.Dynamic.InvokeBinder Provides information about the invoke operation.
args object The arguments that are passed to the object during the invoke operation. For example, for the sampleObject(100) operation, where sampleObject is derived from the class, is equal to 100.
result object The result of the object invocation.
return bool

TryInvokeMember() public method

Tries the invoke member.
public TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool
binder System.Dynamic.InvokeMemberBinder The binder.
args object The args.
result object The result.
return bool

TrySetIndex() public method

Tries the index of the set.
public TrySetIndex ( SetIndexBinder binder, object indexes, object value ) : bool
binder System.Dynamic.SetIndexBinder The binder.
indexes object The indexes.
value object The value.
return bool

TrySetMember() public method

Tries the set member.
public TrySetMember ( SetMemberBinder binder, object value ) : bool
binder System.Dynamic.SetMemberBinder The binder.
value object The value.
return bool