PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Implementation Namespace / Cache­Value Class / Cache­Value Methods / Cache­Value.​With­Value Method

CacheValue.WithValue Method

Returns a new CacheValue with different Value but identical Dependencies.

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public CacheValue WithValue(
	Object value
)

Parameters

value
Type: System.Object
The new value.

Return Value

Type: CacheValue
A new CacheValue with different Value but identical Dependencies.
See Also