Creates a new instance of the SrgsOneOf class.
Overload List
Name | Description | |
---|---|---|
SrgsOneOf()()()() | Initializes a new instance of the SrgsOneOf class. | |
SrgsOneOf(array<String>[]()[][]) | Initializes a new instance of the SrgsOneOf class from an array of String objects. | |
SrgsOneOf(array<SrgsItem>[]()[][]) | Initializes a new instance of the SrgsOneOf class, specifying one or more alternative items in the passed SrgsItem array. |
Remarks
You can construct an instance of the SrgsOneOf class from an array of String objects, from an array of SrgsItem objects, or as an empty list. Using SrgsItem objects instead of String objects in a list of alternatives lets you apply properties of SrgsItem to each item in the list, such as MinRepeat, MaxRepeat, RepeatProbability, and Weight.