예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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.");
 }