PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​DependenciesObject­Dependency
Open sandboxFocus

ObjectDependency Class

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

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

Constructors

Name Description
ObjectDependency(Object)

Initializes a new ObjectDependency.

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()