using System;
namespace SystemX.Net.Platform.Common.Util
{
///
/// Generic event argument decorator class
///
public class GenericEventArgs : EventArgs
{
private EventArgs _innerEventArgs;
public T Cast() where T : EventArgs
{
if (_innerEventArgs is T)
return (T)_innerEventArgs;
return null;
}
public GenericEventArgs(EventArgs args)
{
_innerEventArgs = args;
}
}
}