make order of arguments more orthodox
This commit is contained in:
parent
ec36685c3b
commit
460250b7ad
@ -64,7 +64,7 @@ namespace MBS.Framework
|
||||
public bool Process(ref EventArgs e, EventFilterType type)
|
||||
{
|
||||
if (_processAction != null)
|
||||
return _processAction(ref e, type);
|
||||
return _processAction(type, ref e);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -101,7 +101,7 @@ namespace MBS.Framework
|
||||
public bool Process(ref T e, EventFilterType type)
|
||||
{
|
||||
if (_processAction != null)
|
||||
return _processAction(ref e, type);
|
||||
return _processAction(type, ref e);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -21,5 +21,5 @@
|
||||
using System;
|
||||
namespace MBS.Framework
|
||||
{
|
||||
public delegate bool EventFilterDelegate<T>(ref T e, EventFilterType type) where T : EventArgs;
|
||||
public delegate bool EventFilterDelegate<T>(EventFilterType type, ref T e) where T : EventArgs;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user