PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Caching.​Dependencies Namespace/Object­Dependency Class

ObjectDependency Class

Wraps an Object into an ObjectDependency. The GetCacheKey() relies on the DefaultKeyBuilder to create the cache key of the wrapped object.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.Dependencies.ObjectDependency

Namespace:  PostSharp.Patterns.Caching.Dependencies
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.2.7.0 (6.2.7.0)
Syntax
C#
public sealed class ObjectDependency : ICacheDependency

The ObjectDependency type exposes the following members.

Constructors
  NameDescription
Public methodObjectDependency
Initializes a new ObjectDependency.
Properties
  NameDescription
Public propertyObject
Gets the wrapped object.
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides Object.Equals(Object).)
Public methodEquals(ICacheDependency)
Public methodGetCacheKey
Gets a string that uniquely represents the current object.
Public methodGetHashCode
Serves as the default hash function.
(Overrides Object.GetHashCode().)
See Also