C# Класс Microsoft.Practices.Prism.Events.DelegateReference

Represents a reference to a Delegate that may contain a WeakReference to the target. This class is used internally by the Composite Application Library.
Наследование: IDelegateReference
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DelegateReference ( dynamic @delegate, bool keepReferenceAlive ) : System

Initializes a new instance of DelegateReference.

Приватные методы

Метод Описание
TryGetDelegate ( ) : Delegate

Описание методов

DelegateReference() публичный Метод

Initializes a new instance of DelegateReference.
If the passed is not assignable to .
public DelegateReference ( dynamic @delegate, bool keepReferenceAlive ) : System
@delegate dynamic
keepReferenceAlive bool If the class will create a weak reference to the delegate, allowing it to be garbage collected. Otherwise it will keep a strong reference to the target.
Результат System