PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​ImplementationCache­Key­BuilderBuild­Method­Key
Open sandboxFocus

CacheKeyBuilder.BuildMethodKey Method

BuildMethodKey(MethodInfo, IList<Object>, Object)

Builds a cache key for a given method call.

Declaration
[HasInheritedAttribute(new long[]{})]
public virtual string BuildMethodKey([Required(AttributeId = 975532479039438873L, AttributePriority = 671088640)] MethodInfo method, [Required(AttributeId = 975532479039438874L, AttributePriority = 671088640)] IList<object> arguments, object instance = null)
Parameters
Type Name Description
MethodInfo method

The MethodInfo representing the method.

IList<Object> arguments

The arguments passed to the method call.

Object instance

The this instance of the method call, or null if method is static.

Returns
Type Description
String

A string uniquely representing the method call.