Re: [Banshee-List] [banshee] [SourceManager] Handle exceptions in SourceAdded (bgo#612407)



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]