GenericPointEventArgs.cs 348 B

1234567891011121314
  1. namespace NModbus.Device
  2. {
  3. public class PointEventArgs<T> : PointEventArgs where T : struct
  4. {
  5. private readonly T[] _points;
  6. public PointEventArgs(ushort startAddress, T[] points) : base(startAddress, (ushort)points.Length)
  7. {
  8. _points = points;
  9. }
  10. public T[] Points => _points;
  11. }
  12. }