Search Results for

    Show / Hide Table of Contents

    Class WeakReferenceCachable<T>

    Stores an object as weak reference in the cache

    Inheritance
    System.Object
    System.WeakReference
    TypedWeakReference
    WeakReferenceCachable<T>
    Implements
    System.Runtime.Serialization.ISerializable
    ICacheable
    Inherited Members
    TypedWeakReference.TargetType
    System.WeakReference.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.WeakReference.IsAlive
    System.WeakReference.TrackResurrection
    System.WeakReference.Target
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Cache
    Assembly: Simplic.CoreLib.dll
    Syntax
    public class WeakReferenceCachable<T> : TypedWeakReference, ISerializable, ICacheable where T : ICacheable
    Type Parameters
    Name Description
    T

    Type of the cache object

    Constructors

    | Improve this Doc View Source

    WeakReferenceCachable(T)

    Initialize new WearckReference cache object

    Declaration
    public WeakReferenceCachable(T target)
    Parameters
    Type Name Description
    T target

    Object to cache

    Properties

    | Improve this Doc View Source

    Key

    Get the key of the nested weak reference cachable

    Declaration
    public string Key { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Object

    Object that is stored in the cache

    Declaration
    public T Object { get; }
    Property Value
    Type Description
    T

    Methods

    | Improve this Doc View Source

    OnRemove()

    Remove weak reference from cache

    Declaration
    public void OnRemove()

    Implements

    System.Runtime.Serialization.ISerializable
    ICacheable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx