PostSharp6.4//API Reference/Post­Sharp.​Patterns.​Caching.​Implementation Namespace/Cache­Key­Builder Class/Cache­Key­Builder Methods/Cache­Key­Builder.​Build­Method­Key Method

CacheKeyBuilder.BuildMethodKey Method

Builds a cache key for a given method call.

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
public virtual string BuildMethodKey(
	MethodInfo method,
	IList<Object> arguments,
	Object instance = null
)

Parameters

method
Type: System.Reflection.MethodInfo
The MethodInfo representing the method.
arguments
Type: System.Collections.Generic.IList<Object>
The arguments passed to the method call.
instance (Optional)
Type: System.Object
The this instance of the method call, or null if method is static.

Return Value

Type: String
A string uniquely representing the method call.
See Also