Click or drag to resize

WeakReferenceTTarget Property

Gets the object (the target) referenced by the current WeakReference object.

Namespace:  com.espertech.esper.compat
Assembly:  NEsper.Compat (in NEsper.Compat.dll) Version: 8.0.0.0
Syntax
C#
public T Target { get; }

Property Value

Type: T

Return Value

Type: T
null if the object referenced by the current WeakReference object has been garbage collected; otherwise, a reference to the object referenced by the current WeakReference object.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe reference to the target object is invalid. This can occur if the current WeakReference object has been finalized.
See Also