Innovenergy_trunk/csharp/Lib/Protocols/Modbus/Reflection/Attributes/AddressOffset.cs

11 lines
274 B
C#
Raw Normal View History

2023-05-04 07:32:35 +00:00
using static System.AttributeTargets;
namespace InnovEnergy.Lib.Protocols.Modbus.Reflection.Attributes;
[AttributeUsage(Class | Struct)]
2023-06-13 11:03:36 +00:00
public class AddressOffset : Attribute
2023-05-04 07:32:35 +00:00
{
public Int32 Offset { get; }
2023-06-13 11:03:36 +00:00
public AddressOffset(Int32 offset) => Offset = offset;
2023-05-04 07:32:35 +00:00
}