Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 763 Bytes

File metadata and controls

26 lines (21 loc) · 763 Bytes

Iec025 - IEC Array pattern has to be correct

Severity: Error Error

All structs with the attribute [Array] must have these elements:

  • attribute: [ArrayDimension]
  • attribute (with Size parameter): [StructLayout(Size=x)]
  • Anchor declaration:
     [FieldOffset(0)]
     public <here has to be the array type> Anchor;
  • lower bound declaration:
    public const int LB = <here has to be the value>;
  • upper bound declaration:
    public const int UB = <here has to be the value>;

Solution

You can also use the provided automatic Code Fix to add all missing elements. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)

Provide all missing elements.