Open sandboxFocus

Class CachingServices.Formatters

Allows getting and registering formatters used to generate caching keys.

Inheritance
CachingServices.Formatters
Namespace: PostSharp.Patterns.Caching
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public sealed class CachingServices.Formatters : FormatterRepository<CachingFormattingRole>
Remarks

By default, the cache key builder formats objects with ToString(). Register a formatter here when the ToString() method of a parameter type does not return a distinct string for each distinct value, or when the caching representation of the type must differ from its other representations. Formatters registered here are used only for caching.

See Also