Open sandboxFocus

Class ObjectDependency

Wraps an object into an ObjectDependency. The GetCacheKey() method relies on the DefaultKeyBuilder to create the cache key of the wrapped object.

Inheritance
ObjectDependency
Implements
Namespace: PostSharp.Patterns.Caching.Dependencies
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public sealed class ObjectDependency : ICacheDependency

Constructors

Name Description
ObjectDependency(object)

Initializes a new instance of the ObjectDependency class.

Properties

Name Description
Object

Gets the wrapped object.

Methods

Name Description
Equals(ICacheDependency)

Determines whether the specified object is equal to the current object.

Equals(object)
GetCacheKey()

Gets a string that uniquely represents the current object.

GetHashCode()