Class TypedWeakReference
WeakReference that keeps it type
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
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 TypedWeakReference : WeakReference, ISerializable
Constructors
| Improve this Doc View SourceTypedWeakReference(Object)
Declaration
public TypedWeakReference(object target)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target |
TypedWeakReference(Object, Boolean)
Declaration
public TypedWeakReference(object target, bool trackResurrection)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | |
System.Boolean | trackResurrection |
Properties
| Improve this Doc View SourceTargetType
Gets the type of the target, even if it not alive
Declaration
public Type TargetType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Implements
System.Runtime.Serialization.ISerializable