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
Afficher le fichier Open project: ekonbenefits/dynamitey Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
BaseForwarder ( object target ) : System

Initializes a new instance of the BaseForwarder class.

Method Details

BaseForwarder() protected méthode

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

Equals() public méthode

Equals the specified other.
public Equals ( BaseForwarder other ) : bool
other BaseForwarder The other.
Résultat bool

Equals() public méthode

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

GetDynamicMemberNames() public méthode

Returns the enumeration of all dynamic member names.
public GetDynamicMemberNames ( ) : IEnumerable
Résultat IEnumerable

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

TryGetIndex() public méthode

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.
Résultat bool

TryGetMember() public méthode

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 .
Résultat bool

TryInvoke() public méthode

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.
Résultat bool

TryInvokeMember() public méthode

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.
Résultat bool

TrySetIndex() public méthode

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.
Résultat bool

TrySetMember() public méthode

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