Array |
public sealed class ArrayAttribute : Attribute
The ArrayAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
| ArrayAttribute | Initializes a new instance of the ArrayAttribute class |
| Name | Description | |
|---|---|---|
| Dimensions | Array dimensions (or null) as pairs of integers [startIndex, numberOfElements]. | |
| Width | Sets the width of a single-dimensional array. | |
| WidthParam | Sets the width of a single-dimensional array from the value of a substitution parameter. |
When used with an array field or property, specifies the array dimensions of the tag.
class ExampleModule {
class Channel {
[Auto] bool i_Data;
}
[Auto, TagName(ArrayWidth = 4, Name = "Ch{i:00}")]
Channel[] channels = new Channel[4];
}
would generate the tags
Device:Slot:I.Ch00.Data
Device:Slot:I.Ch01.Data
Device:Slot:I.Ch02.Data
Device:Slot:I.Ch03.Data