ObjectDependency Class |
Wraps an Object into an ObjectDependency. The GetCacheKey()
relies on the DefaultKeyBuilder to create the cache key of the wrapped object.
Namespace: PostSharp.Patterns.Caching.Dependencies
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.10.10.0 (6.10.10.0)
C#
public sealed class ObjectDependency : ICacheDependency
The ObjectDependency type exposes the following members.
Name | Description | |
---|---|---|
ObjectDependency |
Initializes a new ObjectDependency.
|
Name | Description | |
---|---|---|
Object |
Gets the wrapped object.
|
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides Object.Equals(Object).) | |
Equals(ICacheDependency) | Determines whether the specified object is equal to the current object. | |
GetCacheKey |
Gets a string that uniquely represents the current object.
| |
GetHashCode | Serves as the default hash function. (Overrides Object.GetHashCode().) |