using System; using ICD.Common.Properties; using ICD.Common.Utils.Extensions; namespace ICD.Common.Utils.EventArguments { public sealed class FloatEventArgs : GenericEventArgs { /// /// Constructor. /// /// public FloatEventArgs(float data) : base(data) { } } public static class FloatEventArgsExtensions { /// /// Raises the event safely. Simply skips if the handler is null. /// /// /// /// public static void Raise([CanBeNull]this EventHandler extends, object sender, float data) { extends.Raise(sender, new FloatEventArgs(data)); } } }