/// <summary> /// Create new instance. /// </summary> /// <param name="reading">Temperature reading.</param> /// <exception cref="System.ArgumentNullException">Reading cannot be null.</exception> public HermoReadingEventArgs(HermoReading reading) { if (reading == null) { throw new ArgumentNullException("reading", "Reading cannot be null."); } this.Reading = reading; }
/// <summary> /// Create new instance. /// </summary> /// <param name="reading">Temperature reading.</param> /// <exception cref="System.ArgumentNullException">Reading cannot be null.</exception> public HermoReadingEventArgs(HermoReading reading) { Reading = reading ?? throw new ArgumentNullException("reading", "Reading cannot be null."); }