PostSharp.ILAPI 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
System.Reflection.MethodInfo method

The System.Reflection.MethodInfo representing the method.

System.Collections.Generic.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.