C# Class Dynamitey.CacheableInvocation

Cacheable representation of an invocation without the target or arguments also by default only does public methods to make it easier to cache. ///
Inheritance: Invocation
Exibir arquivo Open project: ekonbenefits/dynamitey Class Usage Examples

Public Methods

Method Description
CacheableInvocation ( InvocationKind kind, String_OR_InvokeMemberName name = null, int argCount, string argNames = null, object context = null, Type convertType = null, bool convertExplicit = false, object storedArgs = null ) : System

Initializes a new instance of the CacheableInvocation class.

CreateCall ( InvocationKind kind, String_OR_InvokeMemberName name = null, CallInfo callInfo = null, object context = null ) : CacheableInvocation

Creates the cacheable method or indexer or property call.

CreateConvert ( Type convertType, bool convertExplicit = false ) : CacheableInvocation

Creates the cacheable convert call.

Equals ( CacheableInvocation other ) : bool

Equalses the specified other.

Equals ( object obj ) : bool

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

GetHashCode ( ) : int

Returns a hash code for this instance.

Invoke ( object target ) : object

Invokes the invocation on specified target with specific args.

Method Details

CacheableInvocation() public method

Initializes a new instance of the CacheableInvocation class.
public CacheableInvocation ( InvocationKind kind, String_OR_InvokeMemberName name = null, int argCount, string argNames = null, object context = null, Type convertType = null, bool convertExplicit = false, object storedArgs = null ) : System
kind InvocationKind The kind.
name String_OR_InvokeMemberName The name.
argCount int The arg count.
argNames string The arg names.
context object The context.
convertType System.Type Type of the convert.
convertExplicit bool if set to true [convert explict].
storedArgs object The stored args.
return System

CreateCall() public static method

Creates the cacheable method or indexer or property call.
public static CreateCall ( InvocationKind kind, String_OR_InvokeMemberName name = null, CallInfo callInfo = null, object context = null ) : CacheableInvocation
kind InvocationKind The kind.
name String_OR_InvokeMemberName The name.
callInfo System.Dynamic.CallInfo The callInfo.
context object The context.
return CacheableInvocation

CreateConvert() public static method

Creates the cacheable convert call.
public static CreateConvert ( Type convertType, bool convertExplicit = false ) : CacheableInvocation
convertType System.Type Type of the convert.
convertExplicit bool if set to true [convert explict].
return CacheableInvocation

Equals() public method

Equalses the specified other.
public Equals ( CacheableInvocation other ) : bool
other CacheableInvocation 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

GetHashCode() public method

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

Invoke() public method

Invokes the invocation on specified target with specific args.
CacheableInvocation can't change conversion type on invoke.;args Unknown Invocation Kind:
public Invoke ( object target ) : object
target object The target.
return object