using System; namespace Rssdp { /// /// Event arguments for the and events. /// public sealed class DeviceEventArgs : EventArgs { private readonly SsdpDevice _Device; /// /// Constructs a new instance for the specified . /// /// The associated with the event this argument class is being used for. /// Thrown if the argument is null. public DeviceEventArgs(SsdpDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _Device = device; } /// /// Returns the instance the event being raised for. /// public SsdpDevice Device { get { return _Device; } } } }