mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 21:24:58 +00:00
fix: Removing bad validation
This commit is contained in:
@@ -14,9 +14,6 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
/// <param name="sender"></param>
|
/// <param name="sender"></param>
|
||||||
public static void Raise(this EventHandler extends, object sender)
|
public static void Raise(this EventHandler extends, object sender)
|
||||||
{
|
{
|
||||||
if (sender == null)
|
|
||||||
throw new ArgumentNullException("sender");
|
|
||||||
|
|
||||||
if (extends != null)
|
if (extends != null)
|
||||||
extends(sender, EventArgs.Empty);
|
extends(sender, EventArgs.Empty);
|
||||||
}
|
}
|
||||||
@@ -31,9 +28,6 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
public static void Raise<T>(this EventHandler<T> extends, object sender, T args)
|
public static void Raise<T>(this EventHandler<T> extends, object sender, T args)
|
||||||
where T : EventArgs
|
where T : EventArgs
|
||||||
{
|
{
|
||||||
if (sender == null)
|
|
||||||
throw new ArgumentNullException("sender");
|
|
||||||
|
|
||||||
if (args == null)
|
if (args == null)
|
||||||
throw new ArgumentNullException("args");
|
throw new ArgumentNullException("args");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user