Share via


WeakDelegate Class

Provides methods for combining and removing "weak" delegates.

Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in microsoft.spot.native.dll)

Syntax

public static sealed class WeakDelegate

Remarks

This class cannot be inherited.

When instances of the WeakDelegate class are created, the object references in the delegate list are treated like WeakReference objects. This means that these object references are prone to garbage collection even if they are still targets in the list of delegates. When such object references are collected as garbage, they are automatically removed from the list of delegates.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

WeakDelegate Members
Microsoft.SPOT Namespace