Class VariantList
List of Variant
Inheritance
object
VariantList
Namespace: BuildSystem.Variants
Assembly: BuildSystem.ManagerObject.Interfaces.dll
Syntax
public class VariantList : List<Variant>
Constructors
VariantList()
List of Variant
Declaration
public VariantList()
VariantList(VariantList)
List of VariantList initialized from another VariantList object
Declaration
public VariantList(VariantList source)
Parameters
Type | Name | Description |
---|---|---|
VariantList | source | Object to copy list from it |
VariantList(JsonNode)
List of Variant initialized from JsonNode
Declaration
public VariantList(JsonNode jsonNode)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Json.Nodes.JsonNode | jsonNode | JsonArray, which contains variants |
Methods
Find(string)
Explore items and search the one with according Name
Declaration
public Variant? Find(string itemName)
Parameters
Type | Name | Description |
---|---|---|
string | itemName | Name of searching Variant |
Returns
Type | Description |
---|---|
Variant |
Update(JsonNode?)
Update items list according to settings from json:
- Item with existing name will be overwritten
- New item will be added
- Not existing will be deleted
Declaration
public void Update(JsonNode? jsonNode)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Json.Nodes.JsonNode | jsonNode |