Re: [Banshee-List] [banshee] [SourceManager] Handle exceptions in SourceAdded (bgo#612407)
- From: Gabriel Burt <gabriel burt gmail com>
- To: banshee-list gnome org
- Subject: Re: [Banshee-List] [banshee] [SourceManager] Handle exceptions in SourceAdded (bgo#612407)
- Date: Thu, 25 Mar 2010 09:42:01 -0700
On Wed, Mar 24, 2010 at 7:57 PM, Alexander Kojevnikov
<alexk src gnome org> wrote:
> + public static class EventExtensions
> + {
> + public static void SafeInvoke<T> (this T @event, params object[] args) where T : class
> + {
> + var multicast = @event as MulticastDelegate;
Hey Alexander, looking at this, I wonder if it'd work [better] to have
T : MulticastDelegate - then you wouldn't even have to cast.
Gabriel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]