PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Caching.​Implementation Namespace/Cache­Key­Builder Class/Cache­Key­Builder Methods/Cache­Key­Builder.​Append­Argument Method

CacheKeyBuilder.AppendArgument Method

Appends a method argument to an UnsafeStringBuilder. To avoid ambiguities between different overloads of the same method, the default implementation appends both the parameter type and the value key.

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.6.10.0 (6.6.10.0)
Syntax
C#
protected virtual void AppendArgument(
	UnsafeStringBuilder stringBuilder,
	Type parameterType,
	Object parameterValue
)

Parameters

stringBuilder
Type: PostSharp.Patterns.Formatters.UnsafeStringBuilder
An UnsafeStringBuilder.
parameterType
Type: System.Type
The type of the parameter.
parameterValue
Type: System.Object
The value assigned to the parameter (can be null).
See Also