[성현모] CPXV2 Init
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
|
||||
namespace SystemX.Net.Platform.Common.Util
|
||||
{
|
||||
/// <summary>
|
||||
/// Generic event argument decorator class
|
||||
/// </summary>
|
||||
public class GenericEventArgs : EventArgs
|
||||
{
|
||||
private EventArgs _innerEventArgs;
|
||||
|
||||
public T Cast<T>() where T : EventArgs
|
||||
{
|
||||
if (_innerEventArgs is T)
|
||||
return (T)_innerEventArgs;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public GenericEventArgs(EventArgs args)
|
||||
{
|
||||
_innerEventArgs = args;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user