What you want to do is pass an object parameter to your delegate. The delegate can set a property on the object, and when control is returned to the method that raised the event, the new value of the property can be retrieved, and you can return this value from the method.
You shouldn't be building a design based on the return values of delegates, but the above strategy is optimal for accomplishing just that.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement